fix: nvim
This commit is contained in:
parent
8ebb841679
commit
c4b8f9c475
@ -48,6 +48,7 @@ require('packer').startup(function()
|
||||
use 'ggandor/leap.nvim' -- Jump around in file
|
||||
use 'mfussenegger/nvim-dap' -- Debugger Adapter Protocol
|
||||
use 'rcarriga/nvim-dap-ui' -- UI for DAP
|
||||
use 'nvim-neotest/nvim-nio' -- for nvim-dap-ui
|
||||
use 'phha/zenburn.nvim' -- zenburn coloursheme
|
||||
use 'rmagatti/auto-session' -- session management
|
||||
end)
|
||||
@ -152,7 +153,7 @@ end
|
||||
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
|
||||
local servers = { 'rust_analyzer', 'texlab', 'pyright', 'tsserver', 'ccls', 'html', 'yamlls', 'ansiblels', 'csharp_ls', 'hls', 'cssls', 'eslint' }
|
||||
local servers = { 'rust_analyzer', 'texlab', 'pyright', 'tsserver', 'ccls', 'html', 'yamlls', 'ansiblels', 'hls', 'cssls', 'eslint' }
|
||||
for _, server in ipairs(servers) do
|
||||
lsp[server].setup {
|
||||
on_attach = on_attach,
|
||||
@ -160,6 +161,12 @@ for _, server in ipairs(servers) do
|
||||
}
|
||||
end
|
||||
|
||||
lsp.csharp_ls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
cmd = { '/home/max/.dotnet/tools/csharp-ls' }
|
||||
}
|
||||
|
||||
lsp.lua_ls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
|
Loading…
Reference in New Issue
Block a user