Fix formatting

This commit is contained in:
2023-12-22 23:33:09 +01:00
parent 8ccb9684f5
commit 5d21ded235
3 changed files with 43 additions and 44 deletions
+2 -2
View File
@@ -238,8 +238,8 @@ local plugins = {
local opts = { local opts = {
install = { install = {
colorscheme = { "moonfly" } colorscheme = { "moonfly", },
} },
} }
require("lazy").setup(plugins, opts) require("lazy").setup(plugins, opts)
+10 -12
View File
@@ -31,18 +31,16 @@ local function setup()
) )
vim.keymap.set( vim.keymap.set(
"n", "<leader>fg", function () "n", "<leader>fg", function ()
builtin.live_grep( builtin.live_grep({
{ additional_args = function (_)
additional_args = function (_) return {
return { "--hidden",
"--hidden", "--iglob=!.venv",
"--iglob=!.venv", "--iglob=!vendor",
"--iglob=!vendor", "--iglob=!.git",
"--iglob=!.git", }
} end,
end, })
}
)
end end
) )
vim.keymap.set("n", "<leader>fb", builtin.buffers) vim.keymap.set("n", "<leader>fb", builtin.buffers)
+31 -30
View File
@@ -17,39 +17,40 @@
-- https://github.com/nvim-treesitter/nvim-treesitter -- https://github.com/nvim-treesitter/nvim-treesitter
local function setup() local function setup()
require("nvim-treesitter.configs").setup({ require("nvim-treesitter.configs").setup({
ensure_installed = { ensure_installed = {
"c", -- recommended default "c", -- recommended default
"lua", -- recommended default "lua", -- recommended default
"vim", -- recommended default "vim", -- recommended default
"vimdoc", -- recommended default "vimdoc", -- recommended default
"query", -- recommended default "query", -- recommended default
"luadoc", "luadoc",
"phpdoc", "phpdoc",
"regex", -- for noice "regex", -- for noice
"bash", -- for noice "bash", -- for noice
"markdown", -- for noice "markdown", -- for noice
"markdown_inline", -- for noice "markdown_inline", -- for noice
"org", "org",
}, },
auto_install = true, auto_install = true,
highlight = { highlight = {
enable = true, enable = true,
disable = {}, disable = {},
additional_vim_regex_highlighting = { "org", }, additional_vim_regex_highlighting = { "org", },
}, },
-- Indentation based on treesitter for the = operator. -- Indentation based on treesitter for the = operator.
-- NOTE: This is an experimental feature. -- NOTE: This is an experimental feature.
indent = { indent = {
enable = true, enable = true,
}, },
}) })
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()" vim.opt.foldmethod = "expr"
vim.opt.foldenable = false vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldenable = false
end end
return setup return setup