Files
vimrc/lua/plugins/lsp/init.lua
2025-06-19 14:31:13 +01:00

49 lines
1.3 KiB
Lua

return TableConcat(require 'plugins.lsp.conform', {
{
'neovim/nvim-lspconfig',
dependencies = {
'hrsh7th/nvim-cmp',
'saghen/blink.cmp',
{
'SmiteshP/nvim-navbuddy',
dependencies = {
'SmiteshP/nvim-navic',
'MunifTanjim/nui.nvim',
},
opts = { lsp = { auto_attach = true } },
keys = {
{ '<leader>n', '<cmd>Navbuddy<cr>', desc = 'Open Navbuddy' },
},
},
},
ft = { 'lua', 'elixir', 'go', 'erlang', 'typescript', 'typescriptreact', 'rust' },
config = function()
require('plugins.lsp.setup').setup()
end,
},
{
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
-- used for completion, annotations and signatures of Neovim apis
'folke/lazydev.nvim',
ft = 'lua',
opts = {
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = '${3rd}/luv/library', words = { 'vim%.uv' } },
},
},
},
{
'windwp/nvim-ts-autotag',
ft = { 'javascriptreact', 'typescriptreact', 'html' },
opts = {
opts = {
-- Defaults
enable_close = true, -- Auto close tags
enable_rename = true, -- Auto rename pairs of tags
enable_close_on_slash = false, -- Auto close on trailing </
},
},
},
})