Nvim: remove unused modules, update configs
This commit is contained in:
@@ -121,6 +121,7 @@ return {
|
||||
capabilities = capabilities
|
||||
},
|
||||
inlay_hints = {
|
||||
inline = false,
|
||||
max_len_align = true,
|
||||
max_len_align_padding = 3,
|
||||
right_align = true,
|
||||
@@ -144,6 +145,28 @@ return {
|
||||
--on_publish_diagnostics = diagnostic_handler,
|
||||
})
|
||||
|
||||
nvim_lsp.matlab_ls.setup({
|
||||
cmd = { "matlab-language-server", "--stdio"},
|
||||
filetypes = { "matlab" },
|
||||
handlers = { [ "workspace/configuration"] = function(_, _, ctx)
|
||||
local client = vim.lsp.get_client_by_id(ctx.client_id)
|
||||
return {client.config.settings.matlab}
|
||||
end
|
||||
},
|
||||
root_dir = nvim_lsp.util.find_git_ancestor,
|
||||
single_file_support = false,
|
||||
settings = {
|
||||
matlab = {
|
||||
indexWorkspace = true,
|
||||
installPath = "/home/kmcr/.local/usr/MATLAB/R2021b",
|
||||
matlabConnectionTiming = "onStart",
|
||||
telemetry = true,
|
||||
},
|
||||
},
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities
|
||||
})
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
local servers = { "cmake", "rust_analyzer", "bashls", "marksman" }
|
||||
|
||||
Reference in New Issue
Block a user