diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-23 17:04:16 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-23 17:04:16 +0300 |
| commit | 9f36c9e319c3f62d2cc5fcc13888bb1c52549dd5 (patch) | |
| tree | fcb9e06a5618d957cda5f1e63cbec0dc0a5ce4d6 /.config/nvim/lua/custom/plugins/lspconfig.lua | |
| parent | bcd20b2cb1836bc8e5baa34d8b0e1a96f3c2f788 (diff) | |
refactor(neovim): minor changes and splited most plugins to their own file
Diffstat (limited to '.config/nvim/lua/custom/plugins/lspconfig.lua')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/lspconfig.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/lspconfig.lua b/.config/nvim/lua/custom/plugins/lspconfig.lua new file mode 100644 index 0000000..c6b85b5 --- /dev/null +++ b/.config/nvim/lua/custom/plugins/lspconfig.lua @@ -0,0 +1,24 @@ +return { + -- 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', + dependencies = { + { 'williamboman/mason.nvim', cmd = 'Mason' }, + 'WhoIsSethDaniel/mason-tool-installer.nvim', + }, + build = ':MasonUpdate', + config = function() + require('lua.custom.configs.mason') + end, + }, + }, + config = function() + require('lua.custom.configs.lsp') + end, +} |
