diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index d7bc7eb..e8412ec 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -222,6 +222,48 @@ 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, + }, + { + "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", @@ -242,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' 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 }, } 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)' 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