refactor autocommands

This commit is contained in:
christianchiarulli 2021-06-30 18:45:40 -04:00
parent d8cf871a38
commit 9e7ad60747
14 changed files with 283 additions and 298 deletions

View file

@ -111,6 +111,13 @@ function lsp_config.tsserver_on_attach(client, bufnr)
client.resolved_capabilities.document_formatting = false
end
require('lv-utils').define_augroups({
_general_lsp = {
{'FileType', 'lspinfo', 'nnoremap <silent> <buffer> q :q<CR>'},
}
})
-- Use a loop to conveniently both setup defined servers
-- and map buffer local keybindings when the language server attaches
-- local servers = {"pyright", "tsserver"}