From 1d7b46bc71cdd3239377517072def0f83a5b8488 Mon Sep 17 00:00:00 2001 From: Tilo K Date: Mon, 9 Jun 2025 13:15:49 +0200 Subject: [PATCH] some keymaps --- init.lua | 15 ++++++++------- lua/custom/plugins/supermaven.lua | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 lua/custom/plugins/supermaven.lua diff --git a/init.lua b/init.lua index a5d4057..0bad41d 100644 --- a/init.lua +++ b/init.lua @@ -537,27 +537,29 @@ require('lazy').setup({ -- Rename the variable under your cursor. -- Most Language Servers support renaming across files, etc. - map('grn', vim.lsp.buf.rename, '[R]e[n]ame') + map('rn', vim.lsp.buf.rename, '[R]e[n]ame') -- Execute a code action, usually your cursor needs to be on top of an error -- or a suggestion from your LSP for this to activate. map('gra', vim.lsp.buf.code_action, '[G]oto Code [A]ction', { 'n', 'x' }) + map('sh', vim.lsp.buf.hover, '[S]how [H]ovewr', { 'n', 'x' }) + -- Find references for the word under your cursor. - map('grr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') + map('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') -- Jump to the implementation of the word under your cursor. -- Useful when your language has ways of declaring types without an actual implementation. - map('gri', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation') + map('gi', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation') -- Jump to the definition of the word under your cursor. -- This is where a variable was first declared, or where a function is defined, etc. -- To jump back, press . - map('grd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') + map('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') -- WARN: This is not Goto Definition, this is Goto Declaration. -- For example, in C this would take you to the header. - map('grD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') + map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') -- Fuzzy find all the symbols in your current document. -- Symbols are things like variables, functions, types, etc. @@ -835,8 +837,7 @@ require('lazy').setup({ -- : Toggle signature help -- -- See :h blink-cmp-config-keymap for defining your own keymap - preset = 'default', - + preset = 'enter', -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps }, diff --git a/lua/custom/plugins/supermaven.lua b/lua/custom/plugins/supermaven.lua new file mode 100644 index 0000000..6e6ab1f --- /dev/null +++ b/lua/custom/plugins/supermaven.lua @@ -0,0 +1,21 @@ +return { + { + 'supermaven-inc/supermaven-nvim', + config = function() + require('supermaven-nvim').setup { + binary = { + fetcher = { + powershell_cmd = { + 'powershell', + '-NoProfile', + '-NonInteractive', + '-ExecutionPolicy', + 'Bypass', + '-Command', + }, + }, + }, + } + end, + }, +}