Neovim changes to plugins
This commit is contained in:
parent
553978feef
commit
9e3b58d72c
11 changed files with 145 additions and 63 deletions
|
@ -8,6 +8,8 @@ return {
|
||||||
"nvim-tree/nvim-web-devicons", -- optional dependency
|
"nvim-tree/nvim-web-devicons", -- optional dependency
|
||||||
},
|
},
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
opts = {},
|
opts = {
|
||||||
|
theme = "catppuccin-macchiato",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"HampusHauffman/block.nvim",
|
"HampusHauffman/block.nvim",
|
||||||
keys = { { "<leader>ub", ":Block", desc = "Toggle Block" } },
|
keys = { { "<leader>ub", ":Block<CR>", desc = "Toggle Block" } },
|
||||||
config = function()
|
config = function()
|
||||||
require("block").setup({
|
require("block").setup({
|
||||||
percent = 0.9,
|
percent = 0.9,
|
||||||
|
|
|
@ -1,48 +1,59 @@
|
||||||
|
local macchiato = require("catppuccin.palettes").get_palette("macchiato")
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
keys = {
|
dependencies = {
|
||||||
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
|
"catppuccin",
|
||||||
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
options = {
|
|
||||||
-- stylua: ignore
|
|
||||||
close_command = function(n) require("mini.bufremove").delete(n, false) end,
|
|
||||||
-- stylua: ignore
|
|
||||||
separator_style = "slope",
|
|
||||||
highlights = {
|
|
||||||
fill = {
|
|
||||||
fg = "#cad3f5",
|
|
||||||
bg = "#24273a",
|
|
||||||
},
|
|
||||||
background = {
|
|
||||||
fg = "#cad3f5",
|
|
||||||
bg = "#24273a",
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
keys = {
|
||||||
right_mouse_command = function(n)
|
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
|
||||||
require("mini.bufremove").delete(n, false)
|
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
|
||||||
end,
|
},
|
||||||
diagnostics = "nvim_lsp",
|
opts = {
|
||||||
always_show_bufferline = false,
|
highlights = require("catppuccin.groups.integrations.bufferline").get({
|
||||||
diagnostics_indicator = function(_, _, diag)
|
styles = { "italic", "bold" },
|
||||||
local icons = require("lazyvim.config").icons.diagnostics
|
custom = {
|
||||||
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
|
all = {
|
||||||
.. (diag.warning and icons.Warn .. diag.warning or "")
|
fill = { bg = macchiato.mantle },
|
||||||
return vim.trim(ret)
|
background = { bg = macchiato.mantle },
|
||||||
end,
|
},
|
||||||
offsets = {
|
},
|
||||||
{
|
}),
|
||||||
filetype = "neo-tree",
|
options = {
|
||||||
text = "Neo-tree",
|
buffer_close_icon = "",
|
||||||
highlight = "Directory",
|
modified_icon = "",
|
||||||
text_align = "left",
|
close_icon = "",
|
||||||
},
|
color_icons = true,
|
||||||
|
close_command = function(n)
|
||||||
|
require("mini.bufremove").delete(n, false)
|
||||||
|
end,
|
||||||
|
separator_style = "slope",
|
||||||
|
right_mouse_command = function(n)
|
||||||
|
require("mini.bufremove").delete(n, false)
|
||||||
|
end,
|
||||||
|
themable = true,
|
||||||
|
view = "multiwindow",
|
||||||
|
indicator = {
|
||||||
|
style = "underline",
|
||||||
|
},
|
||||||
|
diagnostics = "nvim_lsp",
|
||||||
|
always_show_bufferline = false,
|
||||||
|
diagnostics_indicator = function(_, _, diag)
|
||||||
|
local icons = require("lazyvim.config").icons.diagnostics
|
||||||
|
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
|
||||||
|
.. (diag.warning and icons.Warn .. diag.warning or "")
|
||||||
|
return vim.trim(ret)
|
||||||
|
end,
|
||||||
|
offsets = {
|
||||||
|
{
|
||||||
|
filetype = "neo-tree",
|
||||||
|
text = "Neo-tree",
|
||||||
|
highlight = "Directory",
|
||||||
|
text_align = "left",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,12 @@ return {
|
||||||
integrations = {
|
integrations = {
|
||||||
alpha = true,
|
alpha = true,
|
||||||
cmp = true,
|
cmp = true,
|
||||||
|
barbecue = {
|
||||||
|
dim_dirname = true, -- directory name is dimmed by default
|
||||||
|
bold_basename = true,
|
||||||
|
dim_context = false,
|
||||||
|
alt_background = false,
|
||||||
|
},
|
||||||
dap = {
|
dap = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
enable_ui = true, -- enable nvim-dap-ui
|
enable_ui = true, -- enable nvim-dap-ui
|
||||||
|
@ -15,26 +21,42 @@ return {
|
||||||
gitsigns = true,
|
gitsigns = true,
|
||||||
illuminate = true,
|
illuminate = true,
|
||||||
indent_blankline = { enabled = true },
|
indent_blankline = { enabled = true },
|
||||||
lsp_trouble = true,
|
|
||||||
mason = true,
|
mason = true,
|
||||||
markdown = true,
|
markdown = true,
|
||||||
mini = true,
|
mini = true,
|
||||||
native_lsp = {
|
native_lsp = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
virtual_text = {
|
||||||
|
errors = { "italic" },
|
||||||
|
hints = { "italic" },
|
||||||
|
warnings = { "italic" },
|
||||||
|
information = { "italic" },
|
||||||
|
},
|
||||||
underlines = {
|
underlines = {
|
||||||
errors = { "undercurl" },
|
errors = { "underline" },
|
||||||
hints = { "undercurl" },
|
hints = { "underline" },
|
||||||
warnings = { "undercurl" },
|
warnings = { "underline" },
|
||||||
information = { "undercurl" },
|
information = { "underline" },
|
||||||
|
},
|
||||||
|
inlay_hints = {
|
||||||
|
background = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
navic = { enabled = true, custom_bg = "lualine" },
|
navic = { enabled = false, custom_bg = "lualine" },
|
||||||
neotest = true,
|
neotest = false,
|
||||||
neotree = true,
|
neotree = true,
|
||||||
|
notifier = false,
|
||||||
noice = true,
|
noice = true,
|
||||||
notify = true,
|
ufo = true,
|
||||||
|
overseer = false,
|
||||||
|
rainbow_delimiters = true,
|
||||||
semantic_tokens = true,
|
semantic_tokens = true,
|
||||||
telescope = true,
|
telescope = {
|
||||||
|
enabled = true,
|
||||||
|
-- style = "nvchad"
|
||||||
|
},
|
||||||
|
lsp_trouble = false,
|
||||||
|
symbols_outline = false,
|
||||||
treesitter = true,
|
treesitter = true,
|
||||||
treesitter_context = false,
|
treesitter_context = false,
|
||||||
which_key = true,
|
which_key = true,
|
||||||
|
|
6
.config/nvim/lua/plugins/endwise.lua
Normal file
6
.config/nvim/lua/plugins/endwise.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"RRethy/nvim-treesitter-endwise",
|
||||||
|
event = "BufRead",
|
||||||
|
},
|
||||||
|
}
|
|
@ -18,21 +18,19 @@ return {
|
||||||
disable_mouse = false,
|
disable_mouse = false,
|
||||||
restricted_keys = {
|
restricted_keys = {
|
||||||
["h"] = { "n", "x" },
|
["h"] = { "n", "x" },
|
||||||
["j"] = { "n", "x" },
|
["l"] = { "n", "x" },
|
||||||
["-"] = { "n", "x" },
|
["-"] = { "n", "x" },
|
||||||
["+"] = { "n", "x" },
|
["+"] = { "n", "x" },
|
||||||
["gj"] = { "n", "x" },
|
["gj"] = { "n", "x" },
|
||||||
["gk"] = { "n", "x" },
|
["gk"] = { "n", "x" },
|
||||||
["<CR>"] = { "n", "x" },
|
|
||||||
["<C-M>"] = { "n", "x" },
|
|
||||||
["<C-N>"] = { "n", "x" },
|
["<C-N>"] = { "n", "x" },
|
||||||
["<C-P>"] = { "n", "x" },
|
["<C-P>"] = { "n", "x" },
|
||||||
},
|
},
|
||||||
disabled_keys = {
|
disabled_keys = {
|
||||||
["<Up>"] = { "n" },
|
["<Up>"] = { "" },
|
||||||
["<Down>"] = { "n" },
|
["<Down>"] = { "" },
|
||||||
["<Left>"] = { "n" },
|
["<Left>"] = { "" },
|
||||||
["<Right>"] = { "n" },
|
["<Right>"] = { "" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
24
.config/nvim/lua/plugins/indent-blankline.lua
Normal file
24
.config/nvim/lua/plugins/indent-blankline.lua
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
|
opts = {
|
||||||
|
-- char = "▏",
|
||||||
|
char = "│",
|
||||||
|
filetype_exclude = {
|
||||||
|
"help",
|
||||||
|
"alpha",
|
||||||
|
"dashboard",
|
||||||
|
"neo-tree",
|
||||||
|
"Trouble",
|
||||||
|
"lazy",
|
||||||
|
"mason",
|
||||||
|
"notify",
|
||||||
|
"toggleterm",
|
||||||
|
"lazyterm",
|
||||||
|
},
|
||||||
|
show_trailing_blankline_indent = false,
|
||||||
|
show_current_context = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -8,7 +8,7 @@ return {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
options = {
|
options = {
|
||||||
theme = "auto",
|
theme = "catppuccin",
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
disabled_filetypes = { statusline = { "dashboard", "alpha" } },
|
disabled_filetypes = { statusline = { "dashboard", "alpha" } },
|
||||||
},
|
},
|
||||||
|
|
|
@ -34,7 +34,10 @@ return {
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
sources = { "filesystem", "git_status", "buffers", "document_symbols" },
|
sources = { "filesystem", "git_status", "buffers", "document_symbols" },
|
||||||
|
-- source_selector = {
|
||||||
|
-- winbar = true,
|
||||||
|
-- statusline = true,
|
||||||
|
-- },
|
||||||
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" },
|
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" },
|
||||||
enable_git_status = true,
|
enable_git_status = true,
|
||||||
enable_diagnostics = true,
|
enable_diagnostics = true,
|
||||||
|
|
13
.config/nvim/lua/plugins/nerdy.lua
Normal file
13
.config/nvim/lua/plugins/nerdy.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"2kabhishek/nerdy.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
},
|
||||||
|
cmd = "Nerdy",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>sN", "<cmd>Nerdy<cr>", desc = "Nerd Fonts" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -13,6 +13,9 @@ return {
|
||||||
disable = false,
|
disable = false,
|
||||||
sorting = "frecency",
|
sorting = "frecency",
|
||||||
},
|
},
|
||||||
|
["yanky.nvim#yank_history"] = {
|
||||||
|
disable = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue