diff --git a/.luarc.json b/.luarc.json index 1e1765c..46a06fc 100644 --- a/.luarc.json +++ b/.luarc.json @@ -1,5 +1,9 @@ { "diagnostics.globals": [ - "vim" + "vim", + "Snacks" + ], + "diagnostics.disable": [ + "undefined-doc-name" ] } \ No newline at end of file diff --git a/nvim/lua/config/keys.lua b/nvim/lua/config/keys.lua index bd9c68c..a8139e4 100644 --- a/nvim/lua/config/keys.lua +++ b/nvim/lua/config/keys.lua @@ -1,6 +1,9 @@ local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } +-- F2 rename variable +-- K inspect with LSP + map('n', '', 'bp', opts) map('n', '', 'bn', opts) map('n', '<[b>', 'bp', opts) @@ -15,5 +18,3 @@ map('n', '', "", opts) map('n', '', "", opts) map('n', '', "Switch", opts) map('n', '', "Switch", opts) -map('n', 'r', ":IncRename ", opts) -map('n', 'l', "lua vim.lsp.buf.hover()", opts) diff --git a/nvim/lua/plugins/pickers.lua b/nvim/lua/plugins/pickers.lua index b0700dc..7539718 100644 --- a/nvim/lua/plugins/pickers.lua +++ b/nvim/lua/plugins/pickers.lua @@ -9,8 +9,13 @@ return { }, }, terminal = { - - } + win = { + position = "float", + border = "rounded", + height = 0.8, + width = 0.6, + } + }, }, keys = { { @@ -25,7 +30,6 @@ return { end, desc = "File Explorer" }, - { "s", function() Snacks.picker.lsp_symbols() end, desc = "LSP Symbols" }, { "gd", function() Snacks.picker.lsp_definitions() end, desc = "Goto Definition" }, { "gD", function() Snacks.picker.lsp_declarations() end, desc = "Goto Declaration" }, @@ -47,5 +51,7 @@ return { { "gS", function() Snacks.picker.git_stash() end, desc = "Git Stash" }, { "gd", function() Snacks.picker.git_diff() end, desc = "Git Diff (Hunks)" }, { "gf", function() Snacks.picker.git_log_file() end, desc = "Git Log File" }, + + { "", function() Snacks.terminal.toggle() end, desc = "Terminal Toggle", mode = { "n", "i", "t" } }, } }