diff --git a/.config/nvim/lua/user/plugins/lsp/init.lua b/.config/nvim/lua/user/plugins/lsp/init.lua index 5cc2810..b82027c 100644 --- a/.config/nvim/lua/user/plugins/lsp/init.lua +++ b/.config/nvim/lua/user/plugins/lsp/init.lua @@ -1,15 +1,17 @@ return { { "williamboman/mason.nvim", - event = "VeryLazy", config = true - }, -- simple to use language server installer + }, { "williamboman/mason-lspconfig.nvim", - event = "VeryLazy", + }, + { + "neovim/nvim-lspconfig", + event = "BufReadPre BufNewFile", dependencies = { - "neovim/nvim-lspconfig", "williamboman/mason.nvim", + "williamboman/mason-lspconfig.nvim", "nvimtools/none-ls.nvim", }, config = function() @@ -20,7 +22,6 @@ return { vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]]) end, }, - { "neovim/nvim-lspconfig", event = "VeryLazy" }, -- enable LSP { "lukas-reineke/lsp-format.nvim", event = "VeryLazy",