add sources to null-ls

This commit is contained in:
xesc 2025-02-23 22:30:52 +01:00
parent bdf75e4c1d
commit 6458c24d8a
21 changed files with 638 additions and 627 deletions

View file

@ -1,10 +1,10 @@
return {
{
"echasnovski/mini.pairs",
event = "VeryLazy",
version = false,
config = function()
require("mini.pairs").setup()
end,
}
{
"echasnovski/mini.pairs",
event = "VeryLazy",
version = false,
config = function()
require("mini.pairs").setup()
end,
}
}

View file

@ -1,15 +1,15 @@
return {
{
"matze/wastebin.nvim",
config = function()
require("wastebin").setup({
url = "https://bin.xesc.de",
open_cmd = "xdg-open"
})
end,
opts = {
vim.keymap.set("n", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
vim.keymap.set("v", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
},
}
{
"matze/wastebin.nvim",
config = function()
require("wastebin").setup({
url = "https://bin.xesc.de",
open_cmd = "xdg-open"
})
end,
opts = {
vim.keymap.set("n", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
vim.keymap.set("v", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
},
}
}

View file

@ -1,8 +1,8 @@
return {
{
"echasnovski/mini.comment",
config = function()
require("mini.comment").setup()
end,
},
{
"echasnovski/mini.comment",
config = function()
require("mini.comment").setup()
end,
},
}

View file

@ -1,4 +1,4 @@
return {
"nvim-tree/nvim-web-devicons",
lazy = true,
"nvim-tree/nvim-web-devicons",
lazy = true,
}

View file

@ -1,64 +1,64 @@
return {
{
"sainnhe/everforest",
priority = 1000,
config = function()
-- Settings for colorscheme
vim.api.nvim_set_var("everforest_background", "hard")
vim.api.nvim_set_var("everforest_transparent_background", "1")
vim.api.nvim_set_var("everforest_ui_contrast", "low")
vim.api.nvim_set_var("everforest_show_eob", "0")
vim.api.nvim_set_var("everforest_enable_bold", "1")
vim.api.nvim_set_var("everforest_enable_italic", "1")
vim.api.nvim_set_var("everforest_better_performance", "1")
vim.cmd([[colo everforest]])
{
"sainnhe/everforest",
priority = 1000,
config = function()
-- Settings for colorscheme
vim.api.nvim_set_var("everforest_background", "hard")
vim.api.nvim_set_var("everforest_transparent_background", "1")
vim.api.nvim_set_var("everforest_ui_contrast", "low")
vim.api.nvim_set_var("everforest_show_eob", "0")
vim.api.nvim_set_var("everforest_enable_bold", "1")
vim.api.nvim_set_var("everforest_enable_italic", "1")
vim.api.nvim_set_var("everforest_better_performance", "1")
vim.cmd([[colo everforest]])
-- Settings to override colorscheme
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
-- colors of tabline
vim.api.nvim_set_hl(0, "TabLine", { bg = "#272e33", fg = "#dfa000" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#374145" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3a464c" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#9da9a0" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#dfa000" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#f85552" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
-- Settings to override colorscheme
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
-- colors of tabline
vim.api.nvim_set_hl(0, "TabLine", { bg = "#272e33", fg = "#dfa000" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#374145" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3a464c" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#9da9a0" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#dfa000" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#f85552" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
-- autocommand for overrides
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "everforest",
callback = function()
vim.api.nvim_set_hl(0, "TabLine", { bg = "#272e33", fg = "#dfa000" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#374145" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3c464c" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#9da9a0" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#dfa000" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#f85552" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
-- autocommand for overrides
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "everforest",
callback = function()
vim.api.nvim_set_hl(0, "TabLine", { bg = "#272e33", fg = "#dfa000" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#374145" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3c464c" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#9da9a0" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#dfa000" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#f85552" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
end,
})
end,
})
end,
},
},
}

View file

@ -1,39 +1,39 @@
return {
{
'lewis6991/gitsigns.nvim',
event = "VeryLazy",
config = function()
require('gitsigns').setup({
preview_config = {
border = 'rounded',
},
on_attach = function(bufnr)
local gs = package.loaded.gitsigns
{
'lewis6991/gitsigns.nvim',
event = "VeryLazy",
config = function()
require('gitsigns').setup({
preview_config = {
border = 'rounded',
},
on_attach = function(bufnr)
local gs = package.loaded.gitsigns
local function map(mode, l, r, opts)
opts = opts or {}
opts.buffer = bufnr
vim.keymap.set(mode, l, r, opts)
end
local function map(mode, l, r, opts)
opts = opts or {}
opts.buffer = bufnr
vim.keymap.set(mode, l, r, opts)
end
-- Navigation
map('n', ']c', function()
if vim.wo.diff then return ']c' end
vim.schedule(function() gs.next_hunk() end)
return '<Ignore>'
end, { expr = true })
-- Navigation
map('n', ']c', function()
if vim.wo.diff then return ']c' end
vim.schedule(function() gs.next_hunk() end)
return '<Ignore>'
end, { expr = true })
map('n', '[c', function()
if vim.wo.diff then return '[c' end
vim.schedule(function() gs.prev_hunk() end)
return '<Ignore>'
end, { expr = true })
map('n', '[c', function()
if vim.wo.diff then return '[c' end
vim.schedule(function() gs.prev_hunk() end)
return '<Ignore>'
end, { expr = true })
-- Actions
map('n', '<leader>gB', function() gs.blame_line { full = true } end)
map('n', '<leader>gb', gs.toggle_current_line_blame)
end
})
end,
}
-- Actions
map('n', '<leader>gB', function() gs.blame_line { full = true } end)
map('n', '<leader>gb', gs.toggle_current_line_blame)
end
})
end,
}
}

View file

@ -1,64 +1,64 @@
return {
{
"sainnhe/gruvbox-material",
lazy = true,
config = function()
-- Settings for colorscheme
vim.api.nvim_set_var("gruvbox_material_background", "hard")
vim.api.nvim_set_var("gruvbox_material_transparent_background", "1")
vim.api.nvim_set_var("gruvbox_material_ui_contrast", "low")
vim.api.nvim_set_var("gruvbox_material_show_eob", "0")
vim.api.nvim_set_var("gruvbox_material_enable_bold", "1")
vim.api.nvim_set_var("gruvbox_material_enable_italic", "1")
vim.api.nvim_set_var("gruvbox_material_better_performance", "1")
vim.cmd([[colo gruvbox-material]])
{
"sainnhe/gruvbox-material",
lazy = true,
config = function()
-- Settings for colorscheme
vim.api.nvim_set_var("gruvbox_material_background", "hard")
vim.api.nvim_set_var("gruvbox_material_transparent_background", "1")
vim.api.nvim_set_var("gruvbox_material_ui_contrast", "low")
vim.api.nvim_set_var("gruvbox_material_show_eob", "0")
vim.api.nvim_set_var("gruvbox_material_enable_bold", "1")
vim.api.nvim_set_var("gruvbox_material_enable_italic", "1")
vim.api.nvim_set_var("gruvbox_material_better_performance", "1")
vim.cmd([[colo gruvbox-material]])
-- Settings to override colorscheme
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
-- colors of tabline
vim.api.nvim_set_hl(0, "TabLine", { bg = "#3c3836", fg = "#89b482" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#1d2021" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#d4be98" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#d8a657" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#ea6962" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
-- Settings to override colorscheme
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
-- colors of tabline
vim.api.nvim_set_hl(0, "TabLine", { bg = "#3c3836", fg = "#89b482" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#1d2021" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#d4be98" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#d8a657" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#ea6962" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
-- autocommand for overrides
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "gruvbox-material",
callback = function()
vim.api.nvim_set_hl(0, "TabLine", { bg = "#3c3836", fg = "#89b482" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#1d2021" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#d4be98" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#d8a657" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#ea6962" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
-- autocommand for overrides
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "gruvbox-material",
callback = function()
vim.api.nvim_set_hl(0, "TabLine", { bg = "#3c3836", fg = "#89b482" })
vim.api.nvim_set_hl(0, "TabLineFil", { bg = "#1d2021" })
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = none, fg = "#d4be98" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#d8a657" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", { bg = none, fg = "#ea6962" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
end,
})
end,
})
end,
},
},
}

View file

@ -1,31 +1,31 @@
return {
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = {
"nvim-lua/plenary.nvim",
lazy = true,
},
config = function()
local harpoon = require("harpoon")
harpoon:setup()
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = {
"nvim-lua/plenary.nvim",
lazy = true,
},
config = function()
local harpoon = require("harpoon")
harpoon:setup()
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<leader>n", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<leader>e", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<leader>i", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<leader>o", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<leader>5", function() harpoon:list():select(5) end)
vim.keymap.set("n", "<leader>6", function() harpoon:list():select(6) end)
vim.keymap.set("n", "<leader>7", function() harpoon:list():select(7) end)
vim.keymap.set("n", "<leader>8", function() harpoon:list():select(8) end)
vim.keymap.set("n", "<leader>9", function() harpoon:list():select(9) end)
end
}
vim.keymap.set("n", "<leader>n", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<leader>e", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<leader>i", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<leader>o", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<leader>5", function() harpoon:list():select(5) end)
vim.keymap.set("n", "<leader>6", function() harpoon:list():select(6) end)
vim.keymap.set("n", "<leader>7", function() harpoon:list():select(7) end)
vim.keymap.set("n", "<leader>8", function() harpoon:list():select(8) end)
vim.keymap.set("n", "<leader>9", function() harpoon:list():select(9) end)
end
}
}

View file

@ -1,24 +1,24 @@
return {
{
"lukas-reineke/indent-blankline.nvim",
-- event = "BufReadPre",
main = 'ibl',
config = function()
require("ibl").setup({
enabled = true,
indent = {
char = "",
smart_indent_cap = true
},
whitespace = {
remove_blankline_trail = true,
},
scope = {
exclude = {
language = { "help", "lazy" }
}
},
})
end,
},
{
"lukas-reineke/indent-blankline.nvim",
-- event = "BufReadPre",
main = 'ibl',
config = function()
require("ibl").setup({
enabled = true,
indent = {
char = "",
smart_indent_cap = true
},
whitespace = {
remove_blankline_trail = true,
},
scope = {
exclude = {
language = { "help", "lazy" }
}
},
})
end,
},
}

View file

@ -18,7 +18,6 @@ return {
'nvim-tree/nvim-web-devicons',
},
config = function()
-- setup --
local capabilities = vim.tbl_deep_extend(
@ -83,8 +82,20 @@ return {
null_ls.builtins.diagnostics.trail_space.with {
disabled_filetypes = { "lua" }
},
null_ls.builtins.code_actions.gitsigns,
null_ls.builtins.code_actions.gitrebase,
null_ls.builtins.diagnostics.checkmake,
null_ls.builtins.diagnostics.cmake_lint,
null_ls.builtins.diagnostics.cppcheck,
null_ls.builtins.diagnostics.yamllint,
null_ls.builtins.diagnostics.sqlfluff.with({
extra_args = { "--dialect", "sqlite" },
}),
null_ls.builtins.formatting.sqlfluff.with({
extra_args = { "--dialect", "sqlite" },
}),
null_ls.builtins.formatting.asmfmt,
null_ls.builtins.formatting.cmake_format,
null_ls.builtins.formatting.yamlfmt,
null_ls.builtins.formatting.shfmt,
null_ls.builtins.formatting.shellharden,

View file

@ -1,161 +1,161 @@
return {
{
"nvim-lualine/lualine.nvim",
config = function()
vim.api.nvim_set_option("showmode", false)
local custom_gruvbox = require 'lualine.themes.gruvbox-material'
custom_gruvbox.normal.a.bg = '#89b482'
custom_gruvbox.normal.c.bg = ''
custom_gruvbox.insert.a.bg = '#d8a657'
custom_gruvbox.visual.a.bg = '#a9b665'
custom_gruvbox.replace.a.bg = '#ea6962'
{
"nvim-lualine/lualine.nvim",
config = function()
vim.api.nvim_set_option("showmode", false)
local custom_gruvbox = require 'lualine.themes.gruvbox-material'
custom_gruvbox.normal.a.bg = '#89b482'
custom_gruvbox.normal.c.bg = ''
custom_gruvbox.insert.a.bg = '#d8a657'
custom_gruvbox.visual.a.bg = '#a9b665'
custom_gruvbox.replace.a.bg = '#ea6962'
local function lspsaga()
return require('lspsaga.symbol.winbar').get_bar()
end
require('lualine').setup {
options = {
theme = custom_gruvbox,
globalstatus = true,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = { 'netrw', 'Trouble' },
},
sections = {
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
padding = 1,
},
{
'filename',
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
padding = 1,
path = 1,
},
},
lualine_c = {
{
lspsaga
}
},
lualine_x = {
{
'filetype',
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic', bg = '#141617' },
symbols = {
unix = '(unix)',
dos = '(dos)',
mac = '(mac)',
},
}
local function lspsaga()
return require('lspsaga.symbol.winbar').get_bar()
end
require('lualine').setup {
options = {
theme = custom_gruvbox,
globalstatus = true,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = { 'netrw', 'Trouble' },
},
sections = {
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
padding = 1,
},
{
'filename',
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
padding = 1,
path = 1,
},
},
lualine_c = {
{
lspsaga
}
},
lualine_x = {
{
'filetype',
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic', bg = '#141617' },
symbols = {
unix = '(unix)',
dos = '(dos)',
mac = '(mac)',
},
}
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "" },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
}
}
},
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "" },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
}
}
},
inactive_sections = {
lualine_a = {
{
'mode',
padding = 1,
inactive_sections = {
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
padding = 1,
},
{
'filename',
padding = 1,
path = 1,
}
},
lualine_c = {
},
lualine_x = {
{
'filetype',
color = { gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic' },
symbols = {
unix = 'Unix',
dos = 'Dos',
mac = 'Mac',
},
},
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "󰌶 " },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
},
}
},
}
},
lualine_b = {
{
'branch',
icon = '',
padding = 1,
},
{
'filename',
padding = 1,
path = 1,
}
},
lualine_c = {
},
lualine_x = {
{
'filetype',
color = { gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic' },
symbols = {
unix = 'Unix',
dos = 'Dos',
mac = 'Mac',
},
},
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "󰌶 " },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
},
}
},
}
end,
},
end,
},
}

View file

@ -1,12 +1,12 @@
return {
{
"chentoast/marks.nvim",
event = "VeryLazy",
opts = {},
config = function()
require 'marks'.setup({
sign_priority = 5,
})
end,
}
{
"chentoast/marks.nvim",
event = "VeryLazy",
opts = {},
config = function()
require 'marks'.setup({
sign_priority = 5,
})
end,
}
}

View file

@ -1,18 +1,18 @@
return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
keys = {
{ "<leader>F", "<cmd>NvimTreeFindFileToggle<cr>", desc = "Toggle Filetree" },
},
config = function()
require("nvim-tree").setup({
view = {
width = 56,
},
})
end,
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
keys = {
{ "<leader>F", "<cmd>NvimTreeFindFileToggle<cr>", desc = "Toggle Filetree" },
},
config = function()
require("nvim-tree").setup({
view = {
width = 56,
},
})
end,
}

View file

@ -1,6 +1,6 @@
return {
{
"nvim-lua/plenary.nvim",
lazy = true,
},
{
"nvim-lua/plenary.nvim",
lazy = true,
},
}

View file

@ -1,14 +1,14 @@
return {
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}
}
-- Old text Command New text

View file

@ -1,75 +1,75 @@
return {
{
"nvim-telescope/telescope.nvim",
lazy = true,
cmd = "Telescope",
version = false,
config = function()
require('telescope').setup({
pickers = {
find_files = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
live_grep = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
current_buffer_fuzzy_find = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
grep_string = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
git_files = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
keymaps = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
oldfiles = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
command_history = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
{
"nvim-telescope/telescope.nvim",
lazy = true,
cmd = "Telescope",
version = false,
config = function()
require('telescope').setup({
pickers = {
find_files = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
live_grep = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
current_buffer_fuzzy_find = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
grep_string = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
git_files = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
keymaps = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
oldfiles = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
command_history = {
layout_config = {
prompt_position = 'top',
},
sorting_strategy = 'ascending',
},
},
})
end,
keys = {
{ "<leader>:", "<cmd>Telescope command_history<cr>", desc = "Command History" },
{ "<leader>,", "<cmd>Telescope buffers show_all_buffers=true<cr>", desc = "Switch Buffer" },
-- find
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>fb", "<cmd>Telescope current_buffer_fuzzy_find<cr>", desc = "Find Strings in current Buffer" },
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Grep Content in Files" },
{ "<leader>/", "<cmd>Telescope current_buffer_fuzzy_find<cr>", desc = "Find Strings in current Buffer" },
{ "<leader>fh", "<cmd>Telescope grep_string<cr>", desc = "Grep currently hovered String" },
{ "<leader>fG", "<cmd>Telescope git_files<cr>", desc = "Find Git Files" },
{ "<leader>fk", "<cmd>Telescope keymaps<cr>", desc = "List Keymaps" },
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", desc = "Find Recent Files" },
},
})
end,
keys = {
{ "<leader>:", "<cmd>Telescope command_history<cr>", desc = "Command History" },
{ "<leader>,", "<cmd>Telescope buffers show_all_buffers=true<cr>", desc = "Switch Buffer" },
-- find
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>fb", "<cmd>Telescope current_buffer_fuzzy_find<cr>", desc = "Find Strings in current Buffer" },
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Grep Content in Files" },
{ "<leader>/", "<cmd>Telescope current_buffer_fuzzy_find<cr>", desc = "Find Strings in current Buffer" },
{ "<leader>fh", "<cmd>Telescope grep_string<cr>", desc = "Grep currently hovered String" },
{ "<leader>fG", "<cmd>Telescope git_files<cr>", desc = "Find Git Files" },
{ "<leader>fk", "<cmd>Telescope keymaps<cr>", desc = "List Keymaps" },
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", desc = "Find Recent Files" },
},
},
}

View file

@ -1,14 +1,14 @@
return {
{
"nvim-treesitter/nvim-treesitter-context",
event = "VeryLazy",
config = function()
require('treesitter-context').setup {
enable = true,
max_lines = 0,
min_window_height = 0,
line_numbers = true,
}
end
}
{
"nvim-treesitter/nvim-treesitter-context",
event = "VeryLazy",
config = function()
require('treesitter-context').setup {
enable = true,
max_lines = 0,
min_window_height = 0,
line_numbers = true,
}
end
}
}

View file

@ -1,68 +1,68 @@
return {
{
"nvim-treesitter/nvim-treesitter-textobjects",
dependencies = { "nvim-treesitter/nvim-treesitter" },
opts = {
textobjects = {
select = {
enable = true,
{
"nvim-treesitter/nvim-treesitter-textobjects",
dependencies = { "nvim-treesitter/nvim-treesitter" },
opts = {
textobjects = {
select = {
enable = true,
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,
keymaps = {
-- You can use the capture groups defined in textobjects.scm
["af"] = "@function.outer",
["if"] = "@function.inner",
["ap"] = "@parameter.outer",
["ip"] = "@parameter.inner",
["ac"] = "@comment.outer",
["aS"] = "@statement.outer",
["ae"] = "@block.outer",
["al"] = "@loop.outer",
["il"] = "@loop.inner",
["ar"] = "@return.outer",
["ir"] = "@return.inner",
["ia"] = "@assignment.rhs",
["aa"] = "@assignment.inner",
["i?"] = "@conditional.inner",
["a?"] = "@conditional.outer",
["in"] = "@number.inner",
["iC"] = "@class.inner",
["aC"] = "@class.outer",
["ig"] = "@call.inner",
["ag"] = "@call.outer",
keymaps = {
-- You can use the capture groups defined in textobjects.scm
["af"] = "@function.outer",
["if"] = "@function.inner",
["ap"] = "@parameter.outer",
["ip"] = "@parameter.inner",
["ac"] = "@comment.outer",
["aS"] = "@statement.outer",
["ae"] = "@block.outer",
["al"] = "@loop.outer",
["il"] = "@loop.inner",
["ar"] = "@return.outer",
["ir"] = "@return.inner",
["ia"] = "@assignment.rhs",
["aa"] = "@assignment.inner",
["i?"] = "@conditional.inner",
["a?"] = "@conditional.outer",
["in"] = "@number.inner",
["iC"] = "@class.inner",
["aC"] = "@class.outer",
["ig"] = "@call.inner",
["ag"] = "@call.outer",
-- You can also use captures from other query groups like `locals.scm`
["as"] = { query = "@scope", query_group = "locals", desc = "Select language scope" },
},
-- You can choose the select mode (default is charwise 'v')
--
-- Can also be a function which gets passed a table with the keys
-- * query_string: eg '@function.inner'
-- * method: eg 'v' or 'o'
-- and should return the mode ('v', 'V', or '<c-v>') or a table
-- mapping query_strings to modes.
selection_modes = {
['@parameter.outer'] = 'v', -- charwise
['@function.outer'] = 'V', -- linewise
},
-- If you set this to `true` (default is `false`) then any textobject is
-- extended to include preceding or succeeding whitespace. Succeeding
-- whitespace has priority in order to act similarly to eg the built-in
-- `ap`.
--
-- Can also be a function which gets passed a table with the keys
-- * query_string: eg '@function.inner'
-- * selection_mode: eg 'v'
-- and should return true or false
include_surrounding_whitespace = false,
},
},
-- You can also use captures from other query groups like `locals.scm`
["as"] = { query = "@scope", query_group = "locals", desc = "Select language scope" },
},
-- You can choose the select mode (default is charwise 'v')
--
-- Can also be a function which gets passed a table with the keys
-- * query_string: eg '@function.inner'
-- * method: eg 'v' or 'o'
-- and should return the mode ('v', 'V', or '<c-v>') or a table
-- mapping query_strings to modes.
selection_modes = {
['@parameter.outer'] = 'v', -- charwise
['@function.outer'] = 'V', -- linewise
},
-- If you set this to `true` (default is `false`) then any textobject is
-- extended to include preceding or succeeding whitespace. Succeeding
-- whitespace has priority in order to act similarly to eg the built-in
-- `ap`.
--
-- Can also be a function which gets passed a table with the keys
-- * query_string: eg '@function.inner'
-- * selection_mode: eg 'v'
-- and should return true or false
include_surrounding_whitespace = false,
},
},
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}
}

View file

@ -1,32 +1,32 @@
return {
{
"nvim-treesitter/nvim-treesitter",
version = false,
build = ":TSUpdate",
-- event = "BufReadPre",
opts = {
ensure_installed = {
"c",
"lua",
"rust",
"latex",
"bibtex",
"python",
"vim",
"yaml",
"json",
},
sync_install = false,
auto_install = true,
highlight = {
enable = true,
disable = {
"markdown",
{
"nvim-treesitter/nvim-treesitter",
version = false,
build = ":TSUpdate",
-- event = "BufReadPre",
opts = {
ensure_installed = {
"c",
"lua",
"rust",
"latex",
"bibtex",
"python",
"vim",
"yaml",
"json",
},
sync_install = false,
auto_install = true,
highlight = {
enable = true,
disable = {
"markdown",
},
},
},
},
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}
}

View file

@ -1,13 +1,13 @@
return {
{
"mbbill/undotree",
keys = {
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = "toggle undotree" },
},
config = function()
vim.g.undotree_WindowLayout = 4
vim.g.undotree_SplitWidth = 40
vim.g.undotree_SetFocusWhenToggle = 1
end
}
{
"mbbill/undotree",
keys = {
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = "toggle undotree" },
},
config = function()
vim.g.undotree_WindowLayout = 4
vim.g.undotree_SplitWidth = 40
vim.g.undotree_SetFocusWhenToggle = 1
end
}
}

View file

@ -1,20 +1,20 @@
return {
{
"folke/zen-mode.nvim",
opts = {
window = {
backdrop = 1,
width = 120,
},
plugins = {
options = {
enabled = true,
showcmd = true,
laststatus = 3,
{
"folke/zen-mode.nvim",
opts = {
window = {
backdrop = 1,
width = 120,
},
plugins = {
options = {
enabled = true,
showcmd = true,
laststatus = 3,
},
gitsigns = { enabled = false }
},
vim.keymap.set("n", "<leader>zz", function() require("zen-mode").toggle() end),
},
gitsigns = { enabled = false }
},
vim.keymap.set("n", "<leader>zz", function() require("zen-mode").toggle() end),
},
}
}
}