chore(nvim): updated config

This commit is contained in:
Afonso Franco 2024-03-30 16:08:40 +00:00
parent d1f612bf79
commit e40e156d85
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
5 changed files with 45 additions and 29 deletions

View file

@ -15,6 +15,9 @@ vim.api.nvim_create_autocmd("LspAttach", {
local telescope = require("telescope.builtin")
local conform = require("conform")
local client = vim.lsp.get_client_by_id(ev.data.client_id)
client.server_capabilities.semanticTokensProvider = nil
-- Mappings.
-- See `:help vim.lsp.*` for documentation on any of the below functions
local bufopts = { noremap = true, silent = true, buffer = ev.buf }
@ -62,12 +65,6 @@ mason_lspconfig.setup_handlers({
},
})
end,
["hls"] = function()
lspconfig["hls"].setup({
capabilities = capabilities,
filetypes = { 'haskell', 'lhaskell', 'cabal' },
})
end,
["ltex"] = function()
lspconfig["ltex"].setup({
capabilities = capabilities,
@ -77,15 +74,38 @@ mason_lspconfig.setup_handlers({
require("ltex_extra").setup()
end,
})
end,
["basedpyright"] = function ()
lspconfig["basedpyright"].setup({
capabilities = capabilities,
settings = {
verboseOutput = true,
autoImportCompletion = true,
basedpyright = {
analysis = {
typeCheckingMode = "all",
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = "openFilesOnly",
indexing = true,
},
},
},
})
end
})
lspconfig["hls"].setup({
capabilities = capabilities,
filetypes = { 'haskell', 'lhaskell', 'cabal' },
})
vim.g.rustaceanvim = {
server = {
capabilities = capabilities,
},
}
--vim.g.rustaceanvim = {
-- server = {
-- capabilities = capabilities,
-- },
--}