Fixes for LSPs and treesitter

This commit is contained in:
Ian Roddis
2026-05-04 22:32:04 -03:00
parent 45e0e7210b
commit d96c6f7ebd
+11 -10
View File
@@ -25,6 +25,7 @@ require('lazy').setup({
'stevearc/conform.nvim', -- Autoformatting 'stevearc/conform.nvim', -- Autoformatting
'tanvirtin/monokai.nvim', -- Theme 'tanvirtin/monokai.nvim', -- Theme
'lewis6991/gitsigns.nvim', -- Nice git annotations 'lewis6991/gitsigns.nvim', -- Nice git annotations
'nvim-treesitter/nvim-treesitter',
{ 'nvim-mini/mini.nvim', version = '*' }, { 'nvim-mini/mini.nvim', version = '*' },
-- Fuzzy Finder (files, lsp, etc) -- Fuzzy Finder (files, lsp, etc)
@@ -47,18 +48,19 @@ require('lazy').setup({
}, },
}, {}) }, {})
vim.lsp.enable 'ruff' local servers = {}
vim.lsp.enable 'gopls' for _, dir in ipairs(vim.api.nvim_get_runtime_file('lsp', true)) do
vim.lsp.enable 'clangd' for name, type in vim.fs.dir(dir) do
vim.lsp.enable 'elixirls' if (type == 'file' or type == 'link') and name:sub(-4) == '.lua' then
vim.lsp.enable 'ast_grep' servers[name:sub(1, -5)] = true -- dedupe across runtimepath entries
vim.lsp.enable 'yamlls' end
vim.lsp.enable 'lua_ls' end
vim.lsp.enable 'pylsp' end
vim.lsp.enable 'eslint' vim.lsp.enable(vim.tbl_keys(servers))
-- [[ Setting options ]] -- [[ Setting options ]]
-- vim.opt.autocomplete = true -- Autoindent -- vim.opt.autocomplete = true -- Autoindent
vim.opt.autocomplete = true
vim.opt.ai = true -- Autoindent vim.opt.ai = true -- Autoindent
vim.opt.updatetime = 50 vim.opt.updatetime = 50
vim.opt.mouse = '' vim.opt.mouse = ''
@@ -79,7 +81,6 @@ vim.opt.hlsearch = false
vim.opt.smartcase = true vim.opt.smartcase = true
-- Display -- Display
vim.opt.autocomplete = true
vim.opt.nu = true vim.opt.nu = true
vim.opt.wrap = false vim.opt.wrap = false
vim.opt.termguicolors = false vim.opt.termguicolors = false