Fix formatting
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user