Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
aa7a192b0c
3 changed files with 21 additions and 1 deletions
|
|
@ -9,6 +9,22 @@ end
|
|||
nvim_lsp.rust_analyzer.setup({ on_attach=on_attach })
|
||||
nvim_lsp.gopls.setup({ on_attach=on_attach })
|
||||
nvim_lsp.pyright.setup({ on_attach=on_attach })
|
||||
nvim_lsp.clangd.setup({ on_attach=on_attach })
|
||||
|
||||
nvim_lsp.efm.setup {
|
||||
init_options = {documentFormatting = true},
|
||||
settings = {
|
||||
rootMarkers = {".git/"},
|
||||
languages = {
|
||||
lua = {
|
||||
{ formatCommand = "lua-format -i", formatStdin = true }
|
||||
},
|
||||
python = {
|
||||
{ formatCommand = 'black --quiet -', formatStdin = true }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Enable diagnostics
|
||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue