From 37400f86d6d8b8408929212192b926f7d3feab4e Mon Sep 17 00:00:00 2001 From: lucas barbieri Date: Thu, 28 Nov 2024 11:06:13 -0300 Subject: [PATCH] feat: add lsp configs --- init.lua | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index fe1f8e2..3a7c522 100644 --- a/init.lua +++ b/init.lua @@ -240,7 +240,7 @@ vim.keymap.set('n', 'gf', require('telescope.builtin').git_files, { desc vim.keymap.set('n', 'sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' }) vim.keymap.set('n', 'sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' }) vim.keymap.set('n', 'sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' }) -vim.keymap.set('n', 'sg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' }) +vim.keymap.set('n', 'rg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' }) vim.keymap.set('n', '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 }, }, },