50 lines
1.3 KiB
Lua
50 lines
1.3 KiB
Lua
|
|
vim.pack.add({
|
||
|
|
{ src = "https://github.com/ibhagwan/fzf-lua" },
|
||
|
|
{ src = "https://github.com/tribela/transparent.nvim" },
|
||
|
|
{ src = "https://github.com/nvim-treesitter/nvim-treesitter", version = "master" },
|
||
|
|
})
|
||
|
|
|
||
|
|
-- Required funny setup for cleaning up output in godot projects.
|
||
|
|
require("fzf-lua").setup({
|
||
|
|
files = {
|
||
|
|
cmd = (function()
|
||
|
|
if vim.fn.findfile("project.godot", vim.fn.getcwd() .. ";") ~= "" then
|
||
|
|
return "fdfind --type f -e gd -e gdshader -e gdshaderinc -e tres -e tscn -e cfg -e json -e toml -e txt -e md --exclude={.godot,.git}"
|
||
|
|
else
|
||
|
|
return "fdfind --exclude={.git,.cache,.xmake,.zig-cache,build,tmp,node_modules,elpa} --type f -H"
|
||
|
|
end
|
||
|
|
end)(),
|
||
|
|
},
|
||
|
|
})
|
||
|
|
|
||
|
|
require("nvim-treesitter.configs").setup({
|
||
|
|
ensure_installed = {
|
||
|
|
-- Godot
|
||
|
|
"gdscript",
|
||
|
|
"godot_resource",
|
||
|
|
-- Go
|
||
|
|
"go",
|
||
|
|
"gomod",
|
||
|
|
"gosum",
|
||
|
|
"gowork",
|
||
|
|
-- Web (common)
|
||
|
|
"html",
|
||
|
|
"css",
|
||
|
|
"javascript",
|
||
|
|
"typescript",
|
||
|
|
-- General
|
||
|
|
"lua",
|
||
|
|
"python",
|
||
|
|
"bash",
|
||
|
|
"json",
|
||
|
|
"toml",
|
||
|
|
"yaml",
|
||
|
|
"markdown",
|
||
|
|
"markdown_inline",
|
||
|
|
"vim",
|
||
|
|
"vimdoc",
|
||
|
|
},
|
||
|
|
highlight = { enable = true },
|
||
|
|
indent = { enable = true },
|
||
|
|
})
|