refactor: return function from lspconfig

This commit is contained in:
Youwen Wu 2024-10-11 12:14:12 -07:00
parent 43bb2bcc49
commit e4ba4be689
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 27 additions and 27 deletions

View file

@ -1,6 +1,7 @@
local lspconfig = require("lspconfig") return function()
local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup({ lspconfig.lua_ls.setup({
settings = { settings = {
Lua = { Lua = {
runtime = { runtime = {
@ -21,8 +22,9 @@ lspconfig.lua_ls.setup({
}, },
}, },
}, },
}) })
lspconfig.nixd.setup({}) lspconfig.nixd.setup({})
lspconfig.marksman.setup({}) lspconfig.marksman.setup({})
lspconfig.tinymist.setup({}) lspconfig.tinymist.setup({})
end

View file

@ -15,9 +15,7 @@ return {
{ {
"nvim-lspconfig", "nvim-lspconfig",
event = "BufEnter", event = "BufEnter",
after = function() after = require("lsp"),
require("lsp")
end,
}, },
{ {
"which-key.nvim", "which-key.nvim",