Add lsp bindings

This commit is contained in:
2023-02-23 00:46:05 +09:00
parent e694be4c9e
commit c0702202dd
3 changed files with 121 additions and 199 deletions

View File

@@ -93,6 +93,7 @@ return {
noremap = false,
})
-- TODO: Moves this to the settinsg.lua file and use the standard way
wk.register({
y = { "Yank to system clipboard" },
Y = { "Yank line to system clipboard" },
@@ -102,16 +103,13 @@ return {
prefix = "<leader>",
})
wk.register({
["<leader>w"] = { "<cmd>ASToggle<cr>", "Toggle autosave" },
})
wk.register({
mode = { "n", "v" },
["g"] = { name = "+goto" },
["]"] = { name = "+next" },
["["] = { name = "+prev" },
["<leader>g"] = { name = "+git" },
["<leader>l"] = { name = "+lsp" },
})
local uwk = require("unimpaired-which-key")