build core, basic and go variants and add template
This commit is contained in:
12
basic/nvim/plugconf/lspconfig.lua
Normal file
12
basic/nvim/plugconf/lspconfig.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Set keymaps
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
callback = function(ev)
|
||||
local opts = { buffer = ev.buf }
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
|
||||
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
||||
vim.keymap.set('n', 'cr', vim.lsp.buf.rename, opts)
|
||||
vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, opts)
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user