kickstart.nvim/lua/lsp/ast_grep.lua

13 lines
276 B
Lua

return {
cmd = { 'ast-grep', 'lsp' },
filetypes = { 'java', 'javascript', 'html' },
root_dir = function(fname)
return require('lspconfig.util').find_git_ancestor(fname) or vim.fn.getcwd()
end,
settings = {
['ast-grep'] = {
enable = true,
},
},
}