re-organised config
This commit is contained in:
48
lua/plugins/lsp/init.lua
Normal file
48
lua/plugins/lsp/init.lua
Normal file
@ -0,0 +1,48 @@
|
||||
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 </
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user