Skip to content

Commit

Permalink
update codecompanion, config ejs parser
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Oct 11, 2024
1 parent 9961e8e commit a7e9ddd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions plugin/after/codecompanion.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require('codecompanion').setup({
strategies = {
chat = {
adapter = "gemini",
adapter = "copilot",
},
inline = {
adapter = "copilot",
},
agent = {
adapter = "gemini",
adapter = "copilot",
},
},
})
7 changes: 0 additions & 7 deletions plugin/after/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ nvim_lsp.gopls.setup {
},
},
}
nvim_lsp.pyright.setup {
on_attach = lsp_common.on_attach,
flags = {
debounce_text_changes = 150,
},
capabilities = capabilities,
}

local opts = {
tools = { -- rust-tools options
Expand Down
13 changes: 13 additions & 0 deletions plugin/after/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@ require'nvim-treesitter.configs'.setup {

additional_vim_regex_highlighting = false,
},

on_config_done = function()
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.ejs = {
install_info = {
url = "https://github.com/tree-sitter/tree-sitter-embedded-template",
files = { "src/parser.c" },
requires_generate_from_grammar = true,
},
filetype = "ejs",
}

end,
}

0 comments on commit a7e9ddd

Please sign in to comment.