Remove timestamps, remove konsole setup and update neovim packages
This commit is contained in:
parent
0755c7e3d4
commit
a5aa039671
15 changed files with 40 additions and 186 deletions
|
|
@ -1,5 +1,3 @@
|
|||
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
--use an on_attach function to only map the following keys
|
||||
--after the language server attaches to the current buffer
|
||||
local on_attach = function(client, bufnr)
|
||||
|
|
@ -42,6 +40,11 @@ end
|
|||
|
||||
local util = require('lspconfig/util')
|
||||
|
||||
local python_root_dir = function(fname)
|
||||
return util.root_pattern('.git', 'setup.cfg', 'requirements')(fname) or
|
||||
util.path.dirname(fname)
|
||||
end
|
||||
|
||||
nvim_lsp.pylsp.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
|
|
@ -55,10 +58,16 @@ nvim_lsp.pylsp.setup({
|
|||
}
|
||||
}
|
||||
},
|
||||
root_dir = function(fname)
|
||||
return util.root_pattern('.git', 'setup.cfg', 'requirements')(fname) or
|
||||
util.path.dirname(fname)
|
||||
end
|
||||
root_dir = python_root_dir
|
||||
})
|
||||
|
||||
local pyright_capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
pyright_capabilities.textDocument.publishDiagnostics.tagSupport.valueSet = { 2 }
|
||||
|
||||
nvim_lsp.pyright.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = pyright_capabilities,
|
||||
root_dir = python_root_dir
|
||||
})
|
||||
|
||||
nvim_lsp.html.setup({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue