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:
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user