initial commit
This commit is contained in:
commit
6491e91ec5
37 changed files with 1116 additions and 0 deletions
20
nvim/lua/lsp/init.lua
Normal file
20
nvim/lua/lsp/init.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
vim.lsp.config("cssls", {
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
vim.lsp.enable("lua_ls")
|
||||
vim.lsp.enable("gopls")
|
||||
vim.lsp.enable("docker_compose_language_service")
|
||||
vim.lsp.enable("docker_language_server")
|
||||
vim.lsp.enable("ts_ls")
|
||||
vim.lsp.enable("pylsp")
|
||||
vim.lsp.enable("fish_lsp")
|
||||
vim.lsp.enable("css_modules")
|
||||
vim.lsp.enable("css_variables")
|
||||
vim.lsp.enable("cssls")
|
||||
vim.lsp.enable("nginx_language_server")
|
||||
vim.lsp.enable("nil_ls")
|
||||
vim.lsp.enable("nixd")
|
||||
27
nvim/lua/lsp/lua_ls.lua
Normal file
27
nvim/lua/lsp/lua_ls.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
filetypes = { "lua" },
|
||||
root_markers = {
|
||||
".lua",
|
||||
".emmyrc.json",
|
||||
".luarc.json",
|
||||
".luarc.jsonc",
|
||||
".luacheckrc",
|
||||
".stylua.toml",
|
||||
"stylua.toml",
|
||||
"selene.toml",
|
||||
"selene.yml",
|
||||
".git",
|
||||
},
|
||||
settings = {
|
||||
Lua = {
|
||||
codeLens = {
|
||||
enable = true,
|
||||
},
|
||||
hint = {
|
||||
enable = true,
|
||||
semicolon = "Disable",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue