Neovim changes to plugins

This commit is contained in:
Sergio Laín 2023-09-24 21:22:22 +02:00
parent 553978feef
commit 9e3b58d72c
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
11 changed files with 145 additions and 63 deletions

View file

@ -8,6 +8,8 @@ return {
"nvim-tree/nvim-web-devicons", -- optional dependency
},
event = "BufRead",
opts = {},
opts = {
theme = "catppuccin-macchiato",
},
},
}

View file

@ -1,7 +1,7 @@
return {
{
"HampusHauffman/block.nvim",
keys = { { "<leader>ub", ":Block", desc = "Toggle Block" } },
keys = { { "<leader>ub", ":Block<CR>", desc = "Toggle Block" } },
config = function()
require("block").setup({
percent = 0.9,

View file

@ -1,48 +1,59 @@
local macchiato = require("catppuccin.palettes").get_palette("macchiato")
return {
{
"akinsho/bufferline.nvim",
event = "VeryLazy",
keys = {
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
{ "<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",
}
{
"akinsho/bufferline.nvim",
event = "VeryLazy",
dependencies = {
"catppuccin",
},
right_mouse_command = function(n)
require("mini.bufremove").delete(n, false)
end,
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",
},
keys = {
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
},
opts = {
highlights = require("catppuccin.groups.integrations.bufferline").get({
styles = { "italic", "bold" },
custom = {
all = {
fill = { bg = macchiato.mantle },
background = { bg = macchiato.mantle },
},
},
}),
options = {
buffer_close_icon = "",
modified_icon = "",
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",
},
},
},
},
},
},
},
}

View file

@ -7,6 +7,12 @@ return {
integrations = {
alpha = true,
cmp = true,
barbecue = {
dim_dirname = true, -- directory name is dimmed by default
bold_basename = true,
dim_context = false,
alt_background = false,
},
dap = {
enabled = true,
enable_ui = true, -- enable nvim-dap-ui
@ -15,26 +21,42 @@ return {
gitsigns = true,
illuminate = true,
indent_blankline = { enabled = true },
lsp_trouble = true,
mason = true,
markdown = true,
mini = true,
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
},
underlines = {
errors = { "undercurl" },
hints = { "undercurl" },
warnings = { "undercurl" },
information = { "undercurl" },
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
},
inlay_hints = {
background = true,
},
},
navic = { enabled = true, custom_bg = "lualine" },
neotest = true,
navic = { enabled = false, custom_bg = "lualine" },
neotest = false,
neotree = true,
notifier = false,
noice = true,
notify = true,
ufo = true,
overseer = false,
rainbow_delimiters = true,
semantic_tokens = true,
telescope = true,
telescope = {
enabled = true,
-- style = "nvchad"
},
lsp_trouble = false,
symbols_outline = false,
treesitter = true,
treesitter_context = false,
which_key = true,

View file

@ -0,0 +1,6 @@
return {
{
"RRethy/nvim-treesitter-endwise",
event = "BufRead",
},
}

View file

@ -18,21 +18,19 @@ return {
disable_mouse = false,
restricted_keys = {
["h"] = { "n", "x" },
["j"] = { "n", "x" },
["l"] = { "n", "x" },
["-"] = { "n", "x" },
["+"] = { "n", "x" },
["gj"] = { "n", "x" },
["gk"] = { "n", "x" },
["<CR>"] = { "n", "x" },
["<C-M>"] = { "n", "x" },
["<C-N>"] = { "n", "x" },
["<C-P>"] = { "n", "x" },
},
disabled_keys = {
["<Up>"] = { "n" },
["<Down>"] = { "n" },
["<Left>"] = { "n" },
["<Right>"] = { "n" },
["<Up>"] = { "" },
["<Down>"] = { "" },
["<Left>"] = { "" },
["<Right>"] = { "" },
},
},
},

View 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,
},
},
}

View file

@ -8,7 +8,7 @@ return {
return {
options = {
theme = "auto",
theme = "catppuccin",
globalstatus = true,
disabled_filetypes = { statusline = { "dashboard", "alpha" } },
},

View file

@ -34,7 +34,10 @@ return {
end,
opts = {
sources = { "filesystem", "git_status", "buffers", "document_symbols" },
-- source_selector = {
-- winbar = true,
-- statusline = true,
-- },
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" },
enable_git_status = true,
enable_diagnostics = true,

View 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" },
},
},
}

View file

@ -13,6 +13,9 @@ return {
disable = false,
sorting = "frecency",
},
["yanky.nvim#yank_history"] = {
disable = true,
},
},
})
end,