Added odin tree-sitter and ols support, removed lua LSP because they
changed the name and it's still a sketchy pos.
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ local function get_build_cmd()
|
||||
return "build.bat"
|
||||
else
|
||||
-- TODO(twig): this is untested!
|
||||
return "build.sh"
|
||||
return "./build.sh"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
+3
-25
@@ -60,31 +60,9 @@ lspconfig.clangd.setup{
|
||||
end
|
||||
}
|
||||
}
|
||||
-- honestly don't need this, telemetry is a big yikes.
|
||||
lspconfig.sumneko_lua.setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
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),
|
||||
},
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
lspconfig.rust_analyzer.setup{
|
||||
on_attach = on_attach,
|
||||
}
|
||||
lspconfig.ols.setup{
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user