refactor: return function from lspconfig
This commit is contained in:
parent
43bb2bcc49
commit
e4ba4be689
2 changed files with 27 additions and 27 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
return function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
|
@ -26,3 +27,4 @@ lspconfig.lua_ls.setup({
|
||||||
lspconfig.nixd.setup({})
|
lspconfig.nixd.setup({})
|
||||||
lspconfig.marksman.setup({})
|
lspconfig.marksman.setup({})
|
||||||
lspconfig.tinymist.setup({})
|
lspconfig.tinymist.setup({})
|
||||||
|
end
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue