initial commit
This commit is contained in:
5
lsp/gopls.lua
Normal file
5
lsp/gopls.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { 'gopls' },
|
||||
filetypes = { 'go' },
|
||||
root_markers = { 'go.mod', '.git' },
|
||||
}
|
||||
24
lsp/lua_ls.lua
Normal file
24
lsp/lua_ls.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
filetypes = { "lua" },
|
||||
root_markers = { ".luarc.json", ".luarc.jsonc", ".git" },
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = 'LuaJIT',
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = { 'vim' },
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
checkThirdParty = false,
|
||||
},
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
5
lsp/ruby_lsp.lua
Normal file
5
lsp/ruby_lsp.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "mise", "x", "--", "ruby-lsp" },
|
||||
filetypes = { "ruby" },
|
||||
root_markers = { ".git", "Gemfile" }
|
||||
}
|
||||
5
lsp/tsc.lua
Normal file
5
lsp/tsc.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { 'tsc', '--lsp', '--stdio' },
|
||||
filetypes = { 'javascript', 'typescript', 'typescriptreact', 'javascriptreact' },
|
||||
root_markers = { '.git', 'package.json' }
|
||||
}
|
||||
5
lsp/tsserver.lua
Normal file
5
lsp/tsserver.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "npx", "typescript-language-server", "--stdio" },
|
||||
filetypes = { 'javascript', 'typescript', 'typescriptreact', 'javascriptreact' },
|
||||
root_markers = { '.git', 'package.json' }
|
||||
}
|
||||
Reference in New Issue
Block a user