feat: add lsp configs

This commit is contained in:
lucas barbieri 2024-11-28 11:06:13 -03:00
parent 41ea46b59a
commit 37400f86d6

View File

@ -240,7 +240,7 @@ vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc
vim.keymap.set('n', '<leader>sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' })
vim.keymap.set('n', '<leader>sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' })
vim.keymap.set('n', '<leader>sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' })
vim.keymap.set('n', '<leader>sg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' })
vim.keymap.set('n', '<leader>rg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' })
vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' })
-- [[ Configure Treesitter ]]
@ -364,7 +364,18 @@ local servers = {
},
html = { provideFormatter = false },
cssls = {},
pyright = {},
pyright = {
settings = {
pyright = {
disableOrganizeImports = false,
},
python = {
analysis = {
diagnosticMode = "workspace"
}
}
}
},
jdtls = {
java = {
@ -391,7 +402,7 @@ local servers = {
{
name = '@vue/typescript-plugin',
location = vue_language_server_path,
languages = { 'vue' },
languages = { 'vue', "typescript", "javascript" },
},
},
},
@ -400,7 +411,7 @@ local servers = {
lua_ls = {
Lua = {
workspace = { checkThirdParty = false },
workspace = { checkThirdParty = true },
telemetry = { enable = false },
},
},