.config/nvim/lua/config/maps.lua

changeset 1030
03d507b3c122
parent 1022
d509e282ae10
child 1034
d412eecafebf
--- a/.config/nvim/lua/config/maps.lua
+++ b/.config/nvim/lua/config/maps.lua
@@ -61,7 +61,10 @@ map.set('n', '[d', vim.diagnostic.goto_p
 map.set('n', ']d', vim.diagnostic.goto_next, opts)
 map.set('n', '<leader>ld', vim.diagnostic.setloclist, opts)
 
+vim.api.nvim_create_augroup("lsp_attach", {})
+
 vim.api.nvim_create_autocmd("LspAttach", {
+  group = "lsp_attach",
   callback = function(args)
     local bufnr = args.buf
     local bufopts = { noremap=true, silent=true, buffer=bufnr }

mercurial