Light refactoring, move as many config = func uses into opts as
possible.
This commit is contained in:
parent
657f9cb7e1
commit
0a53678bb9
10 changed files with 119 additions and 140 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"rmagatti/auto-session",
|
"rmagatti/auto-session",
|
||||||
config = function()
|
opts = {
|
||||||
require("auto-session").setup {
|
|
||||||
log_level = "error",
|
log_level = "error",
|
||||||
auto_session_suppress_dirs = {
|
auto_session_suppress_dirs = {
|
||||||
"/",
|
"/",
|
||||||
|
|
@ -15,5 +14,4 @@ return {
|
||||||
"~/dev/git/.dotfiles",
|
"~/dev/git/.dotfiles",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"norcalli/nvim-colorizer.lua",
|
"norcalli/nvim-colorizer.lua",
|
||||||
config = function()
|
opts = {
|
||||||
require("colorizer").setup({
|
|
||||||
DEFAULT_OPTIONS = {
|
DEFAULT_OPTIONS = {
|
||||||
RGB = true,
|
RGB = true,
|
||||||
RRGGBB = true,
|
RRGGBB = true,
|
||||||
|
|
@ -12,6 +11,5 @@ return {
|
||||||
mode = "background",
|
mode = "background",
|
||||||
},
|
},
|
||||||
"*",
|
"*",
|
||||||
})
|
}
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
return {
|
return {
|
||||||
"ggandor/flit.nvim",
|
"ggandor/flit.nvim",
|
||||||
config = function()
|
opts = {
|
||||||
require("flit").setup {
|
|
||||||
keys = { f = "f", F = "F", t = "t", T = "T" },
|
keys = { f = "f", F = "F", t = "t", T = "T" },
|
||||||
labeled_modes = "v",
|
labeled_modes = "v",
|
||||||
multiline = true,
|
multiline = true,
|
||||||
opts = {}
|
opts = {}
|
||||||
}
|
}
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
return {
|
return {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
config = function()
|
opts = {
|
||||||
require("ibl").setup({
|
|
||||||
debounce = 100,
|
debounce = 100,
|
||||||
scope = {
|
scope = {
|
||||||
enabled = false
|
enabled = false
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,6 @@ return {
|
||||||
require("lspsaga").setup({
|
require("lspsaga").setup({
|
||||||
symbol_in_winbar = {
|
symbol_in_winbar = {
|
||||||
enable = false,
|
enable = false,
|
||||||
-- separator = " › ",
|
|
||||||
-- hide_keyword = true,
|
|
||||||
-- ignore_patterns = nil,
|
|
||||||
-- show_file = true,
|
|
||||||
-- folder_level = 2,
|
|
||||||
-- color_mode = true,
|
|
||||||
-- dely = 300,
|
|
||||||
-- show_nodes = true,
|
|
||||||
-- max_nodes = 2,
|
|
||||||
},
|
},
|
||||||
implement = {
|
implement = {
|
||||||
enable = false,
|
enable = false,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
return {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
return {
|
return {
|
||||||
"LennyPhoenix/project.nvim",
|
"LennyPhoenix/project.nvim",
|
||||||
branch = "fix-get_clients",
|
branch = "fix-get_clients",
|
||||||
|
-- This plugin does not have a lua module and we have to use config
|
||||||
config = function()
|
config = function()
|
||||||
require("project_nvim").setup({
|
require("project_nvim").setup({
|
||||||
patterns = {
|
patterns = {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
return {
|
return {
|
||||||
"rasulomaroff/reactive.nvim",
|
"rasulomaroff/reactive.nvim",
|
||||||
config = function()
|
opts = {
|
||||||
require("reactive").setup({
|
load = {
|
||||||
load = { "catppuccin-macchiato-cursor", "catppuccin-macchiato-cursorline" }
|
"catppuccin-macchiato-cursor",
|
||||||
})
|
"catppuccin-macchiato-cursorline",
|
||||||
end,
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@ return {
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
version = "*",
|
version = "*",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
opts = {
|
||||||
require("nvim-surround").setup({
|
|
||||||
-- Make sure that we never get whitespaces when adding surroundings
|
-- Make sure that we never get whitespaces when adding surroundings
|
||||||
surrounds = {
|
surrounds = {
|
||||||
["("] = { add = { "(", ")" }, },
|
["("] = { add = { "(", ")" }, },
|
||||||
|
|
@ -11,6 +10,5 @@ return {
|
||||||
["<"] = { add = { "<", ">" }, },
|
["<"] = { add = { "<", ">" }, },
|
||||||
["["] = { add = { "[", "]" }, },
|
["["] = { add = { "[", "]" }, },
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,17 @@ return {
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
|
opts = {
|
||||||
|
max_lines = 2, -- How many lines the window should span. Values <= 0 mean no limit.
|
||||||
|
multiline_threshold = 3, -- Maximum number of lines to show for a single context
|
||||||
|
trim_scope = "inner", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
||||||
|
}
|
||||||
|
},
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
},
|
},
|
||||||
config = function()
|
opts = {
|
||||||
require("nvim-treesitter.configs").setup({
|
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"vim",
|
"vim",
|
||||||
"vimdoc",
|
"vimdoc",
|
||||||
|
|
@ -68,12 +74,5 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
|
||||||
require("treesitter-context").setup({
|
|
||||||
max_lines = 2, -- How many lines the window should span. Values <= 0 mean no limit.
|
|
||||||
multiline_threshold = 3, -- Maximum number of lines to show for a single context
|
|
||||||
trim_scope = "inner", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue