diff options
Diffstat (limited to '.config/nvim/lua/custom/plugins/lsp.lua')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/lsp.lua | 48 |
1 files changed, 18 insertions, 30 deletions
diff --git a/.config/nvim/lua/custom/plugins/lsp.lua b/.config/nvim/lua/custom/plugins/lsp.lua index 3f12e9a..f6b8b28 100644 --- a/.config/nvim/lua/custom/plugins/lsp.lua +++ b/.config/nvim/lua/custom/plugins/lsp.lua @@ -1,36 +1,24 @@ return { - { - 'neovim/nvim-lspconfig', - lazy = false, - dependencies = { - 'williamboman/mason.nvim', + -- NOTE: Make sure the order is as follows: + -- Mason loads -> Mason lspconfig loads -> Lspconfig loads + 'neovim/nvim-lspconfig', + event = { 'BufReadPre', 'BufNewFile' }, + dependencies = { + 'hrsh7th/cmp-nvim-lsp', + { 'antosha417/nvim-lsp-file-operations', conifg = true }, + { 'williamboman/mason-lspconfig.nvim', - - 'nvimtools/none-ls.nvim', - - -- NOTE: [Good alternative](https://github.com/rachartier/tiny-inline-diagnostic.nvim) - -- although, this plugin is amazing, so I wouldn't switch it most likely - { 'https://git.sr.ht/~whynothugo/lsp_lines.nvim' }, - - { - 'nvimdev/lspsaga.nvim', - dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, + dependencies = { + { 'williamboman/mason.nvim', cmd = 'Mason' }, + 'WhoIsSethDaniel/mason-tool-installer.nvim', }, - { - 'folke/lazydev.nvim', - ft = 'lua', - opts = { library = { { path = 'luvit-meta/library', words = { 'vim%.uv' } } } }, - }, - { 'ray-x/lsp_signature.nvim', event = 'VeryLazy' }, - - -- AUtoformatting - -- 'stevear/conform.nvim', - - -- Schema info - -- 'b0o/SchemaStore.nvim', + build = ':MasonUpdate', + config = function() + require('custom.configs.mason') + end, }, - config = function() - require('custom.lsp') - end, }, + config = function() + require('custom.configs.lsp') + end, } |
