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:
2023-03-07 10:35:43 -08:00
parent 75c7e93a3f
commit aa5fa13989
3 changed files with 22 additions and 38 deletions
+18 -12
View File
@@ -69,15 +69,21 @@ local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
-- },
-- filetype = "zu",
--}
--vim.filetype.add({
-- extension = {
-- odin = "odin"
-- }
--})
--parser_config.odin = {
-- install_info = {
-- url = "D:\\Code\\odin\\tree-sitter-odin",
-- files = {"src/parser.c"}
-- },
-- filetype = "odin",
--}
vim.filetype.add({
extension = {
odin = "odin"
}
})
if (vim.loop.os_uname().sysname == "Windows_NT") then
url = "D:\\Code\\odin\\tree-sitter-odin"
else
url = "~/code/odin/tree-sitter-odin"
end
parser_config.odin = {
install_info = {
url = url,
files = {"src/parser.c"}
},
filetype = "odin",
}