Modified Neovim Config
This commit is contained in:
@@ -1,73 +1,64 @@
|
||||
-- File: ~/.config/nvim/lua/plugins/nvim-tree.lua
|
||||
local M = {}
|
||||
|
||||
-- Keybinding to toggle Nvim Tree
|
||||
function M.setup()
|
||||
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Nvim Tree Configuration
|
||||
require("nvim-tree").setup({
|
||||
view = {
|
||||
width = 35,
|
||||
side = "left",
|
||||
adaptive_size = true,
|
||||
mappings = {
|
||||
list = {
|
||||
{ key = "l", action = "edit" },
|
||||
{ key = "h", action = "close_node" },
|
||||
{ key = "v", action = "vsplit" },
|
||||
{ key = "a", action = "create" },
|
||||
{ key = "d", action = "remove" },
|
||||
{ key = "r", action = "rename" },
|
||||
},
|
||||
require("nvim-tree").setup({
|
||||
view = {
|
||||
width = 35,
|
||||
side = "left",
|
||||
},
|
||||
},
|
||||
renderer = {
|
||||
highlight_git = true,
|
||||
highlight_opened_files = "all",
|
||||
icons = {
|
||||
glyphs = {
|
||||
default = "",
|
||||
symlink = "",
|
||||
folder = {
|
||||
arrow_closed = "",
|
||||
arrow_open = "",
|
||||
default = "",
|
||||
open = "",
|
||||
},
|
||||
git = {
|
||||
unstaged = "✗",
|
||||
staged = "✓",
|
||||
unmerged = "",
|
||||
renamed = "➜",
|
||||
untracked = "★",
|
||||
deleted = "",
|
||||
ignored = "◌",
|
||||
renderer = {
|
||||
highlight_git = true,
|
||||
highlight_opened_files = "all",
|
||||
icons = {
|
||||
glyphs = {
|
||||
default = "",
|
||||
symlink = "",
|
||||
folder = {
|
||||
arrow_closed = "",
|
||||
arrow_open = "",
|
||||
default = "",
|
||||
open = "",
|
||||
},
|
||||
git = {
|
||||
unstaged = "✗",
|
||||
staged = "✓",
|
||||
unmerged = "",
|
||||
renamed = "➜",
|
||||
untracked = "★",
|
||||
deleted = "",
|
||||
ignored = "◌",
|
||||
},
|
||||
},
|
||||
},
|
||||
indent_markers = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
indent_markers = {
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
show_on_dirs = true,
|
||||
icons = {
|
||||
hint = "",
|
||||
info = "",
|
||||
warning = "",
|
||||
error = "",
|
||||
},
|
||||
},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
show_on_dirs = true,
|
||||
icons = {
|
||||
hint = "",
|
||||
info = "",
|
||||
warning = "",
|
||||
error = "",
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
},
|
||||
actions = {
|
||||
open_file = {
|
||||
quit_on_open = true,
|
||||
actions = {
|
||||
open_file = {
|
||||
quit_on_open = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = false,
|
||||
},
|
||||
})
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = false,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
20
nvim/lua/plugins/outline.lua
Normal file
20
nvim/lua/plugins/outline.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-- plugins/outline.lua
|
||||
local M = {}
|
||||
|
||||
M.setup = function()
|
||||
vim.api.nvim_set_keymap('n', '<leader>o', ':Outline<CR>', { noremap = true, silent = true })
|
||||
require('outline').setup({
|
||||
|
||||
|
||||
show_guides = true, -- Show outline guides
|
||||
auto_close = false, -- Do not auto-close the outline
|
||||
auto_open = true, -- Automatically open the outline
|
||||
preview_lines = 10, -- Number of preview lines to show
|
||||
keymaps = { -- Custom key mappings for the outline
|
||||
jump = 'o', -- Jump to the selected item
|
||||
expand_collapse = 'u', -- Expand or collapse an item
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
29
nvim/lua/plugins/rainbow_delimiters.lua
Normal file
29
nvim/lua/plugins/rainbow_delimiters.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
-- Rainbow Delimiters Configuration
|
||||
local rainbow_delimiters = require 'rainbow-delimiters'
|
||||
|
||||
---@type rainbow_delimiters.config
|
||||
vim.g.rainbow_delimiters = {
|
||||
strategy = {
|
||||
[''] = rainbow_delimiters.strategy['global'],
|
||||
vim = rainbow_delimiters.strategy['local'],
|
||||
},
|
||||
query = {
|
||||
[''] = 'rainbow-delimiters',
|
||||
lua = 'rainbow-blocks',
|
||||
},
|
||||
priority = {
|
||||
[''] = 110,
|
||||
lua = 210,
|
||||
},
|
||||
highlight = {
|
||||
'RainbowDelimiterRed',
|
||||
'RainbowDelimiterYellow',
|
||||
'RainbowDelimiterBlue',
|
||||
'RainbowDelimiterOrange',
|
||||
'RainbowDelimiterGreen',
|
||||
'RainbowDelimiterViolet',
|
||||
'RainbowDelimiterCyan',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
21
nvim/lua/plugins/todo-comments.lua
Normal file
21
nvim/lua/plugins/todo-comments.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
require("todo-comments").setup {
|
||||
signs = true, -- show icons in the signs column
|
||||
keywords = {
|
||||
TODO = { icon = " ", color = "info" },
|
||||
FIXME = { icon = " ", color = "error" },
|
||||
HACK = { icon = " ", color = "warning" },
|
||||
WARN = { icon = " ", color = "warning" },
|
||||
NOTE = { icon = " ", color = "hint" },
|
||||
},
|
||||
highlight = {
|
||||
before = "fg", -- highlight the keyword
|
||||
keyword = "wide", -- highlight the whole keyword
|
||||
after = "fg", -- highlight the message
|
||||
},
|
||||
search = {
|
||||
command = "rg", -- ripgrep as the default search command
|
||||
args = {
|
||||
"--color=never", "--no-heading", "--with-filename", "--line-number", "--column"
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user