mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-30 23:54:50 +02:00
refactor autocommands
This commit is contained in:
parent
d8cf871a38
commit
9e7ad60747
14 changed files with 283 additions and 298 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue