From a01152c8146817d904d8f2980c689280c4cbec0b Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 26 Jan 2024 11:21:54 -0600 Subject: feat: add leap, and keybind --- lua/plugins/leap.lua | 6 ++++++ lua/plugins/lspconfig.lua | 1 + lua/plugins/treesitter.lua | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 lua/plugins/leap.lua (limited to 'lua/plugins') diff --git a/lua/plugins/leap.lua b/lua/plugins/leap.lua new file mode 100644 index 0000000..b1ef5e6 --- /dev/null +++ b/lua/plugins/leap.lua @@ -0,0 +1,6 @@ +return { + 'ggandor/leap.nvim', + config = function() + require('leap').create_default_mappings() + end, +} diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index 219e3ca..c01e575 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -78,6 +78,7 @@ return { end nmap('f', 'Format', '[F]ormat') + nmap('R', 'LspRestart', '[R]estart (lsp)') nmap('rn', vim.lsp.buf.rename, '[R]e[n]ame') nmap('ca', vim.lsp.buf.code_action, '[C]ode [A]ction') diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index fe79b6a..3d7a48e 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -23,7 +23,7 @@ return { 'php', 'sql', 'gdscript', - 'godot_resource' + 'godot_resource', }, auto_install = false, highlight = { enable = true }, @@ -31,7 +31,7 @@ return { enable = true, disable = { 'python', - 'css',}, + 'css', }, }, incremental_selection = { enable = true, -- cgit v1.2.3-70-g09d2