From 3f30d890f73af3ee052062030b765ec36f00f7dc Mon Sep 17 00:00:00 2001 From: afonso Date: Fri, 11 Oct 2024 15:12:53 +0100 Subject: [PATCH 1/5] [nvim] flutter tools --- .config/nvim/lua/plugins/lsp.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index d7bc7eb..2f5c097 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -222,6 +222,15 @@ return { version = '^5', lazy = false }, + { + 'akinsho/flutter-tools.nvim', + lazy = false, + dependencies = { + 'nvim-lua/plenary.nvim', + 'stevearc/dressing.nvim', -- optional for vim.ui.select + }, + config = true, + }, { "stevearc/conform.nvim", event = "VeryLazy", From cf5d16e7927c9ddde78d823052f1005cf2c53be2 Mon Sep 17 00:00:00 2001 From: afonso Date: Fri, 11 Oct 2024 15:13:34 +0100 Subject: [PATCH 2/5] [nvim] dap and dap ui --- .config/nvim/lua/plugins/lsp.lua | 35 +++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 2f5c097..e8412ec 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -231,6 +231,39 @@ return { }, config = true, }, + { + "rcarriga/nvim-dap-ui", + event = "VeryLazy", + dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" }, + config = function() + local dap = require("dap") + local dapui = require("dapui") + dapui.setup() + dap.listeners.after.event_initialized["dapui_config"] = function() + dapui.open() + end + dap.listeners.before.event_terminated["dapui_config"] = function() + dapui.close() + end + dap.listeners.before.event_exited["dapui_config"] = function() + dapui.close() + end + end + }, + { + "jay-babu/mason-nvim-dap.nvim", + event = "VeryLazy", + dependencies = { + "williamboman/mason.nvim", + "mfussenegger/nvim-dap", + }, + opts = { + handlers = {} + }, + }, + { + "mfussenegger/nvim-dap", + }, { "stevearc/conform.nvim", event = "VeryLazy", @@ -251,7 +284,7 @@ return { { "lervag/vimtex", - filetypes = {"tex"}, + filetypes = { "tex" }, config = function() if vim.loop.os_uname().sysname == "Darwin" then vim.g.vimtex_view_method = 'skim' From 5144c74839629dd6e40fbc996c9620771356fcc7 Mon Sep 17 00:00:00 2001 From: afonso Date: Fri, 11 Oct 2024 15:13:51 +0100 Subject: [PATCH 3/5] [nvim] mini.ai and treesitter-textobjects --- .config/nvim/lua/plugins/treesitter.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index c18f162..01f74f7 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -38,6 +38,18 @@ return { 'echasnovski/mini.ai', event = "VeryLazy", version = false, - opts = {} + dependencies = { + 'nvim-treesitter/nvim-treesitter-textobjects' + }, + config = function() + local gen_spec = require('mini.ai').gen_spec + require('mini.ai').setup({ + custom_textobjects = { + -- Function definition (needs treesitter queries with these captures) + F = gen_spec.treesitter({ a = '@function.outer', i = '@function.inner' }), + }, + n_lines = 1000 + }) + end }, } From a7f463f110b5e97c46e8865a5b6741152a6f54b8 Mon Sep 17 00:00:00 2001 From: afonso Date: Fri, 11 Oct 2024 15:14:24 +0100 Subject: [PATCH 4/5] [wezterm] disabled ligatures --- .config/wezterm/wezterm.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 239817c..8ed5c86 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -5,6 +5,9 @@ local config = wezterm.config_builder() --Font config config.font_size = 16 +--Disable ligatures +config.harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' } + --Color scheme config.color_scheme = 'Gruvbox dark, hard (base16)' From b38d76e164b101be548c14056a5d7fb228540ad8 Mon Sep 17 00:00:00 2001 From: afonso Date: Fri, 11 Oct 2024 15:15:26 +0100 Subject: [PATCH 5/5] [git] added allowed_signers --- .gitconfig | 2 ++ .gitconfig-gh | 1 + 2 files changed, 3 insertions(+) diff --git a/.gitconfig b/.gitconfig index 3b3923a..dc801c4 100644 --- a/.gitconfig +++ b/.gitconfig @@ -34,3 +34,5 @@ defaultBranch = main [alias] count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #" +[gpg "ssh"] + allowedSignersFile = /home/afonso/.ssh/allowed_signers diff --git a/.gitconfig-gh b/.gitconfig-gh index 8f3993e..21d4db1 100644 --- a/.gitconfig-gh +++ b/.gitconfig-gh @@ -1,2 +1,3 @@ [user] + email = afonso@francof.net name = afonsofrancof