Fix formatting
This commit is contained in:
+10
-12
@@ -31,18 +31,16 @@ local function setup()
|
||||
)
|
||||
vim.keymap.set(
|
||||
"n", "<leader>fg", function ()
|
||||
builtin.live_grep(
|
||||
{
|
||||
additional_args = function (_)
|
||||
return {
|
||||
"--hidden",
|
||||
"--iglob=!.venv",
|
||||
"--iglob=!vendor",
|
||||
"--iglob=!.git",
|
||||
}
|
||||
end,
|
||||
}
|
||||
)
|
||||
builtin.live_grep({
|
||||
additional_args = function (_)
|
||||
return {
|
||||
"--hidden",
|
||||
"--iglob=!.venv",
|
||||
"--iglob=!vendor",
|
||||
"--iglob=!.git",
|
||||
}
|
||||
end,
|
||||
})
|
||||
end
|
||||
)
|
||||
vim.keymap.set("n", "<leader>fb", builtin.buffers)
|
||||
|
||||
+31
-30
@@ -17,39 +17,40 @@
|
||||
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||
|
||||
local function setup()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
"c", -- recommended default
|
||||
"lua", -- recommended default
|
||||
"vim", -- recommended default
|
||||
"vimdoc", -- recommended default
|
||||
"query", -- recommended default
|
||||
"luadoc",
|
||||
"phpdoc",
|
||||
"regex", -- for noice
|
||||
"bash", -- for noice
|
||||
"markdown", -- for noice
|
||||
"markdown_inline", -- for noice
|
||||
"org",
|
||||
},
|
||||
auto_install = true,
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
"c", -- recommended default
|
||||
"lua", -- recommended default
|
||||
"vim", -- recommended default
|
||||
"vimdoc", -- recommended default
|
||||
"query", -- recommended default
|
||||
"luadoc",
|
||||
"phpdoc",
|
||||
"regex", -- for noice
|
||||
"bash", -- for noice
|
||||
"markdown", -- for noice
|
||||
"markdown_inline", -- for noice
|
||||
"org",
|
||||
},
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
additional_vim_regex_highlighting = { "org", },
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
additional_vim_regex_highlighting = { "org", },
|
||||
},
|
||||
|
||||
-- Indentation based on treesitter for the = operator.
|
||||
-- NOTE: This is an experimental feature.
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
-- Indentation based on treesitter for the = operator.
|
||||
-- NOTE: This is an experimental feature.
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldenable = false
|
||||
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldenable = false
|
||||
end
|
||||
|
||||
return setup
|
||||
|
||||
Reference in New Issue
Block a user