nvim lazy plugin management part 2
This commit is contained in:
34
.config/nvim/lua/user/plugins/lsp/init.lua
Normal file
34
.config/nvim/lua/user/plugins/lsp/init.lua
Normal file
@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
event = "VeryLazy",
|
||||
config = true
|
||||
}, -- simple to use language server installer
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("user.plugins.lsp.mason_lsp_config")
|
||||
require("user.plugins.lsp.diagnostics_config").setup()
|
||||
-- require("user.lsp.none_ls")
|
||||
|
||||
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",
|
||||
config = function()
|
||||
local on_attach = function(client)
|
||||
require("lsp-format").on_attach(client)
|
||||
end
|
||||
|
||||
require("lspconfig").gopls.setup { on_attach = on_attach }
|
||||
end
|
||||
},
|
||||
{
|
||||
"nvimtools/none-ls.nvim",
|
||||
event = "VeryLazy"
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user