Rewrote neovim config
This commit is contained in:
parent
0c4b569ab5
commit
d07a82fff2
23 changed files with 177 additions and 196 deletions
24
.config/nvim/lua/plugins/lsp.lua
Normal file
24
.config/nvim/lua/plugins/lsp.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = {
|
||||
servers = {
|
||||
lua_ls = {},
|
||||
gopls = {},
|
||||
|
||||
-- web dev
|
||||
--cssls = {},
|
||||
--html = {},
|
||||
--jsonls = {},
|
||||
--tsserver = {},
|
||||
--svelte = {},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local servers = opts.servers
|
||||
|
||||
for server, server_opts in pairs(servers) do
|
||||
require("lspconfig")[server].setup(server_opts)
|
||||
end
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue