style(nvim-config): add comments and remove redundant config options
Add comment for Rootiest Config and remove some redundant options from codewindow plugin
This commit is contained in:
@@ -54,4 +54,5 @@
|
|||||||
-- Load Lazy package manager and plugins
|
-- Load Lazy package manager and plugins
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
|
-- Rootiest Configuration
|
||||||
require("config.rootiest").setup()
|
require("config.rootiest").setup()
|
||||||
|
|||||||
+7
-21
@@ -89,27 +89,13 @@ return {
|
|||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("codewindow").setup({
|
require("codewindow").setup({
|
||||||
active_in_terminals = false, -- Should the minimap activate for terminal buffers
|
auto_enable = true,
|
||||||
auto_enable = true, -- Automatically open the minimap when entering a (non-excluded) buffer (accepts a table of filetypes)
|
exclude_filetypes = { "help", "dashboard" },
|
||||||
exclude_filetypes = { "help", "dashboard" }, -- Choose certain filetypes to not show minimap on
|
minimap_width = 16,
|
||||||
max_minimap_height = nil, -- The maximum height the minimap can take (including borders)
|
width_multiplier = 3,
|
||||||
max_lines = nil, -- If auto_enable is true, don't open the minimap for buffers which have more than this many lines.
|
screen_bounds = "background",
|
||||||
minimap_width = 10, -- The width of the text part of the minimap
|
window_border = "none",
|
||||||
use_lsp = true, -- Use the builtin LSP to show errors and warnings
|
relative = "win",
|
||||||
use_treesitter = true, -- Use nvim-treesitter to highlight the code
|
|
||||||
use_git = true, -- Show small dots to indicate git additions and deletions
|
|
||||||
width_multiplier = 4, -- How many characters one dot represents
|
|
||||||
z_index = 1, -- The z-index the floating window will be on
|
|
||||||
show_cursor = true, -- Show the cursor position in the minimap
|
|
||||||
screen_bounds = "background", -- How the visible area is displayed, "lines": lines above and below, "background": background color
|
|
||||||
window_border = "none", -- The border style of the floating window (accepts all usual options)
|
|
||||||
relative = "win", -- What will be the minimap be placed relative to, "win": the curre
|
|
||||||
events = {
|
|
||||||
"TextChanged",
|
|
||||||
"InsertLeave",
|
|
||||||
"DiagnosticChanged",
|
|
||||||
"FileWritePost",
|
|
||||||
}, -- Events that update the code window
|
|
||||||
})
|
})
|
||||||
require("codewindow").apply_default_keybinds()
|
require("codewindow").apply_default_keybinds()
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user