add sources to null-ls
This commit is contained in:
parent
bdf75e4c1d
commit
6458c24d8a
21 changed files with 638 additions and 627 deletions
|
@ -1,10 +1,10 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.pairs",
|
"echasnovski/mini.pairs",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
version = false,
|
version = false,
|
||||||
config = function()
|
config = function()
|
||||||
require("mini.pairs").setup()
|
require("mini.pairs").setup()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"matze/wastebin.nvim",
|
"matze/wastebin.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("wastebin").setup({
|
require("wastebin").setup({
|
||||||
url = "https://bin.xesc.de",
|
url = "https://bin.xesc.de",
|
||||||
open_cmd = "xdg-open"
|
open_cmd = "xdg-open"
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
vim.keymap.set("n", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
|
vim.keymap.set("n", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
|
||||||
vim.keymap.set("v", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
|
vim.keymap.set("v", "<leader>wp", "<cmd>WastePaste<cr>", { silent = true }),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.comment",
|
"echasnovski/mini.comment",
|
||||||
config = function()
|
config = function()
|
||||||
require("mini.comment").setup()
|
require("mini.comment").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
return {
|
return {
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,64 +1,64 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"sainnhe/everforest",
|
"sainnhe/everforest",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
-- Settings for colorscheme
|
-- Settings for colorscheme
|
||||||
vim.api.nvim_set_var("everforest_background", "hard")
|
vim.api.nvim_set_var("everforest_background", "hard")
|
||||||
vim.api.nvim_set_var("everforest_transparent_background", "1")
|
vim.api.nvim_set_var("everforest_transparent_background", "1")
|
||||||
vim.api.nvim_set_var("everforest_ui_contrast", "low")
|
vim.api.nvim_set_var("everforest_ui_contrast", "low")
|
||||||
vim.api.nvim_set_var("everforest_show_eob", "0")
|
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_bold", "1")
|
||||||
vim.api.nvim_set_var("everforest_enable_italic", "1")
|
vim.api.nvim_set_var("everforest_enable_italic", "1")
|
||||||
vim.api.nvim_set_var("everforest_better_performance", "1")
|
vim.api.nvim_set_var("everforest_better_performance", "1")
|
||||||
vim.cmd([[colo everforest]])
|
vim.cmd([[colo everforest]])
|
||||||
|
|
||||||
-- Settings to override colorscheme
|
-- Settings to override colorscheme
|
||||||
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
|
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
|
||||||
-- colors of tabline
|
-- colors of tabline
|
||||||
vim.api.nvim_set_hl(0, "TabLine", { bg = "#272e33", fg = "#dfa000" })
|
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, "TabLineFil", { bg = "#374145" })
|
||||||
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
||||||
-- color of statusline
|
-- color of statusline
|
||||||
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
||||||
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
||||||
-- color of vertical split line
|
-- color of vertical split line
|
||||||
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
||||||
-- color of the cursorline and cursorlinenumber
|
-- color of the cursorline and cursorlinenumber
|
||||||
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3a464c" })
|
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3a464c" })
|
||||||
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
|
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
|
||||||
-- color of Floats and FloatBorders
|
-- color of Floats and FloatBorders
|
||||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
|
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, "FloatBorder", { bg = none, fg = "#9da9a0" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#dfa000" })
|
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, "DiagnosticFloatingError", { bg = none, fg = "#f85552" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
|
||||||
|
|
||||||
-- autocommand for overrides
|
-- autocommand for overrides
|
||||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
pattern = "everforest",
|
pattern = "everforest",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.api.nvim_set_hl(0, "TabLine", { bg = "#272e33", fg = "#dfa000" })
|
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, "TabLineFil", { bg = "#374145" })
|
||||||
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
||||||
-- color of statusline
|
-- color of statusline
|
||||||
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
||||||
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
||||||
-- color of vertical split line
|
-- color of vertical split line
|
||||||
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
||||||
-- color of the cursorline and cursorlinenumber
|
-- color of the cursorline and cursorlinenumber
|
||||||
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3c464c" })
|
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#3c464c" })
|
||||||
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
|
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, fg = "#dbbc7f" })
|
||||||
-- color of Floats and FloatBorders
|
-- color of Floats and FloatBorders
|
||||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
|
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, "FloatBorder", { bg = none, fg = "#9da9a0" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#dfa000" })
|
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, "DiagnosticFloatingError", { bg = none, fg = "#f85552" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#35a77c" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#8da101" })
|
||||||
|
end,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
})
|
},
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'lewis6991/gitsigns.nvim',
|
'lewis6991/gitsigns.nvim',
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require('gitsigns').setup({
|
require('gitsigns').setup({
|
||||||
preview_config = {
|
preview_config = {
|
||||||
border = 'rounded',
|
border = 'rounded',
|
||||||
},
|
},
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
local gs = package.loaded.gitsigns
|
local gs = package.loaded.gitsigns
|
||||||
|
|
||||||
local function map(mode, l, r, opts)
|
local function map(mode, l, r, opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
opts.buffer = bufnr
|
opts.buffer = bufnr
|
||||||
vim.keymap.set(mode, l, r, opts)
|
vim.keymap.set(mode, l, r, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Navigation
|
-- Navigation
|
||||||
map('n', ']c', function()
|
map('n', ']c', function()
|
||||||
if vim.wo.diff then return ']c' end
|
if vim.wo.diff then return ']c' end
|
||||||
vim.schedule(function() gs.next_hunk() end)
|
vim.schedule(function() gs.next_hunk() end)
|
||||||
return '<Ignore>'
|
return '<Ignore>'
|
||||||
end, { expr = true })
|
end, { expr = true })
|
||||||
|
|
||||||
map('n', '[c', function()
|
map('n', '[c', function()
|
||||||
if vim.wo.diff then return '[c' end
|
if vim.wo.diff then return '[c' end
|
||||||
vim.schedule(function() gs.prev_hunk() end)
|
vim.schedule(function() gs.prev_hunk() end)
|
||||||
return '<Ignore>'
|
return '<Ignore>'
|
||||||
end, { expr = true })
|
end, { expr = true })
|
||||||
|
|
||||||
-- Actions
|
-- Actions
|
||||||
map('n', '<leader>gB', function() gs.blame_line { full = true } end)
|
map('n', '<leader>gB', function() gs.blame_line { full = true } end)
|
||||||
map('n', '<leader>gb', gs.toggle_current_line_blame)
|
map('n', '<leader>gb', gs.toggle_current_line_blame)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,64 +1,64 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"sainnhe/gruvbox-material",
|
"sainnhe/gruvbox-material",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
config = function()
|
config = function()
|
||||||
-- Settings for colorscheme
|
-- Settings for colorscheme
|
||||||
vim.api.nvim_set_var("gruvbox_material_background", "hard")
|
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_transparent_background", "1")
|
||||||
vim.api.nvim_set_var("gruvbox_material_ui_contrast", "low")
|
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_show_eob", "0")
|
||||||
vim.api.nvim_set_var("gruvbox_material_enable_bold", "1")
|
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_enable_italic", "1")
|
||||||
vim.api.nvim_set_var("gruvbox_material_better_performance", "1")
|
vim.api.nvim_set_var("gruvbox_material_better_performance", "1")
|
||||||
vim.cmd([[colo gruvbox-material]])
|
vim.cmd([[colo gruvbox-material]])
|
||||||
|
|
||||||
-- Settings to override colorscheme
|
-- Settings to override colorscheme
|
||||||
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
|
-- vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
|
||||||
-- colors of tabline
|
-- colors of tabline
|
||||||
vim.api.nvim_set_hl(0, "TabLine", { bg = "#3c3836", fg = "#89b482" })
|
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, "TabLineFil", { bg = "#1d2021" })
|
||||||
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
||||||
-- color of statusline
|
-- color of statusline
|
||||||
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
||||||
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
||||||
-- color of vertical split line
|
-- color of vertical split line
|
||||||
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
||||||
-- color of the cursorline and cursorlinenumber
|
-- color of the cursorline and cursorlinenumber
|
||||||
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
|
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
|
||||||
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
|
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
|
||||||
-- color of Floats and FloatBorders
|
-- color of Floats and FloatBorders
|
||||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
|
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, "FloatBorder", { bg = none, fg = "#d4be98" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#d8a657" })
|
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, "DiagnosticFloatingError", { bg = none, fg = "#ea6962" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
|
||||||
|
|
||||||
-- autocommand for overrides
|
-- autocommand for overrides
|
||||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
pattern = "gruvbox-material",
|
pattern = "gruvbox-material",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.api.nvim_set_hl(0, "TabLine", { bg = "#3c3836", fg = "#89b482" })
|
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, "TabLineFil", { bg = "#1d2021" })
|
||||||
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
vim.api.nvim_set_hl(0, "TabLineSel", { bold = true, bg = "none", fg = "#d8a657" })
|
||||||
-- color of statusline
|
-- color of statusline
|
||||||
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
vim.api.nvim_set_hl(0, "StatusLine", { bold = false, bg = "#1d2021", fg = "#89b482" })
|
||||||
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
vim.api.nvim_set_hl(0, "StatusLineNC", { bg = "#1d2021", fg = "#5b534d" })
|
||||||
-- color of vertical split line
|
-- color of vertical split line
|
||||||
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
vim.api.nvim_set_hl(0, "VertSplit", { bg = "#141617", fg = "#141617" })
|
||||||
-- color of the cursorline and cursorlinenumber
|
-- color of the cursorline and cursorlinenumber
|
||||||
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
|
vim.api.nvim_set_hl(0, "Cursorline", { bg = "#141617" })
|
||||||
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
|
vim.api.nvim_set_hl(0, "CursorLineNr", { bold = true, bg = "#141617", fg = "#d8a657" })
|
||||||
-- color of Floats and FloatBorders
|
-- color of Floats and FloatBorders
|
||||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = none, fg = none })
|
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, "FloatBorder", { bg = none, fg = "#d4be98" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", { bg = none, fg = "#d8a657" })
|
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, "DiagnosticFloatingError", { bg = none, fg = "#ea6962" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", { bg = none, fg = "#a9b665" })
|
||||||
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
|
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", { bg = none, fg = "#d4be98" })
|
||||||
|
end,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
})
|
},
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"ThePrimeagen/harpoon",
|
"ThePrimeagen/harpoon",
|
||||||
branch = "harpoon2",
|
branch = "harpoon2",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local harpoon = require("harpoon")
|
local harpoon = require("harpoon")
|
||||||
harpoon:setup()
|
harpoon:setup()
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() 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", "<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>n", function() harpoon:list():select(1) end)
|
||||||
vim.keymap.set("n", "<leader>e", function() harpoon:list():select(2) 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>i", function() harpoon:list():select(3) end)
|
||||||
vim.keymap.set("n", "<leader>o", function() harpoon:list():select(4) 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>1", function() harpoon:list():select(1) end)
|
||||||
vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) 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>3", function() harpoon:list():select(3) end)
|
||||||
vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) 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>5", function() harpoon:list():select(5) end)
|
||||||
vim.keymap.set("n", "<leader>6", function() harpoon:list():select(6) 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>7", function() harpoon:list():select(7) end)
|
||||||
vim.keymap.set("n", "<leader>8", function() harpoon:list():select(8) 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)
|
vim.keymap.set("n", "<leader>9", function() harpoon:list():select(9) end)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
-- event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
main = 'ibl',
|
main = 'ibl',
|
||||||
config = function()
|
config = function()
|
||||||
require("ibl").setup({
|
require("ibl").setup({
|
||||||
enabled = true,
|
enabled = true,
|
||||||
indent = {
|
indent = {
|
||||||
char = "│",
|
char = "│",
|
||||||
smart_indent_cap = true
|
smart_indent_cap = true
|
||||||
},
|
},
|
||||||
whitespace = {
|
whitespace = {
|
||||||
remove_blankline_trail = true,
|
remove_blankline_trail = true,
|
||||||
},
|
},
|
||||||
scope = {
|
scope = {
|
||||||
exclude = {
|
exclude = {
|
||||||
language = { "help", "lazy" }
|
language = { "help", "lazy" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ return {
|
||||||
'nvim-tree/nvim-web-devicons',
|
'nvim-tree/nvim-web-devicons',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
|
|
||||||
-- setup --
|
-- setup --
|
||||||
|
|
||||||
local capabilities = vim.tbl_deep_extend(
|
local capabilities = vim.tbl_deep_extend(
|
||||||
|
@ -83,8 +82,20 @@ return {
|
||||||
null_ls.builtins.diagnostics.trail_space.with {
|
null_ls.builtins.diagnostics.trail_space.with {
|
||||||
disabled_filetypes = { "lua" }
|
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.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.yamlfmt,
|
||||||
null_ls.builtins.formatting.shfmt,
|
null_ls.builtins.formatting.shfmt,
|
||||||
null_ls.builtins.formatting.shellharden,
|
null_ls.builtins.formatting.shellharden,
|
||||||
|
|
|
@ -1,161 +1,161 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_set_option("showmode", false)
|
vim.api.nvim_set_option("showmode", false)
|
||||||
local custom_gruvbox = require 'lualine.themes.gruvbox-material'
|
local custom_gruvbox = require 'lualine.themes.gruvbox-material'
|
||||||
custom_gruvbox.normal.a.bg = '#89b482'
|
custom_gruvbox.normal.a.bg = '#89b482'
|
||||||
custom_gruvbox.normal.c.bg = ''
|
custom_gruvbox.normal.c.bg = ''
|
||||||
custom_gruvbox.insert.a.bg = '#d8a657'
|
custom_gruvbox.insert.a.bg = '#d8a657'
|
||||||
custom_gruvbox.visual.a.bg = '#a9b665'
|
custom_gruvbox.visual.a.bg = '#a9b665'
|
||||||
custom_gruvbox.replace.a.bg = '#ea6962'
|
custom_gruvbox.replace.a.bg = '#ea6962'
|
||||||
|
|
||||||
|
|
||||||
local function lspsaga()
|
local function lspsaga()
|
||||||
return require('lspsaga.symbol.winbar').get_bar()
|
return require('lspsaga.symbol.winbar').get_bar()
|
||||||
end
|
end
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
theme = custom_gruvbox,
|
theme = custom_gruvbox,
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
component_separators = { left = '', right = '' },
|
component_separators = { left = '', right = '' },
|
||||||
section_separators = { left = '', right = '' },
|
section_separators = { left = '', right = '' },
|
||||||
disabled_filetypes = { 'netrw', 'Trouble' },
|
disabled_filetypes = { 'netrw', 'Trouble' },
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
{
|
||||||
'mode',
|
'mode',
|
||||||
padding = 1,
|
padding = 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
{
|
{
|
||||||
'branch',
|
'branch',
|
||||||
icon = '',
|
icon = '',
|
||||||
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
|
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'filename',
|
'filename',
|
||||||
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
|
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
path = 1,
|
path = 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
{
|
{
|
||||||
lspsaga
|
lspsaga
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
{
|
{
|
||||||
'filetype',
|
'filetype',
|
||||||
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
|
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
fmt = function(str)
|
fmt = function(str)
|
||||||
return (str:gsub("^%l", string.upper))
|
return (str:gsub("^%l", string.upper))
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'fileformat',
|
'fileformat',
|
||||||
color = { gui = 'italic', bg = '#141617' },
|
color = { gui = 'italic', bg = '#141617' },
|
||||||
symbols = {
|
symbols = {
|
||||||
unix = '(unix)',
|
unix = '(unix)',
|
||||||
dos = '(dos)',
|
dos = '(dos)',
|
||||||
mac = '(mac)',
|
mac = '(mac)',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
{
|
{
|
||||||
'diagnostics',
|
'diagnostics',
|
||||||
color = { gui = 'bold', bg = '#141617' },
|
color = { gui = 'bold', bg = '#141617' },
|
||||||
sections = { 'error', 'warn', 'info', 'hint' },
|
sections = { 'error', 'warn', 'info', 'hint' },
|
||||||
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
update_in_insert = true
|
update_in_insert = true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'diff',
|
'diff',
|
||||||
icon = { ' ', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
|
icon = { ' ', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
|
||||||
color = { gui = 'bold', bg = '#141617' },
|
color = { gui = 'bold', bg = '#141617' },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
{
|
{
|
||||||
'location',
|
'location',
|
||||||
padding = 1,
|
padding = 1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
{
|
||||||
'mode',
|
'mode',
|
||||||
padding = 1,
|
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,
|
||||||
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,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"chentoast/marks.nvim",
|
"chentoast/marks.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function()
|
config = function()
|
||||||
require 'marks'.setup({
|
require 'marks'.setup({
|
||||||
sign_priority = 5,
|
sign_priority = 5,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
return {
|
return {
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
version = "*",
|
version = "*",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>F", "<cmd>NvimTreeFindFileToggle<cr>", desc = "Toggle Filetree" },
|
{ "<leader>F", "<cmd>NvimTreeFindFileToggle<cr>", desc = "Toggle Filetree" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-tree").setup({
|
require("nvim-tree").setup({
|
||||||
view = {
|
view = {
|
||||||
width = 56,
|
width = 56,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-surround").setup({
|
require("nvim-surround").setup({
|
||||||
-- Configuration here, or leave empty to use defaults
|
-- Configuration here, or leave empty to use defaults
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Old text Command New text
|
-- Old text Command New text
|
||||||
|
|
|
@ -1,75 +1,75 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = "Telescope",
|
cmd = "Telescope",
|
||||||
version = false,
|
version = false,
|
||||||
config = function()
|
config = function()
|
||||||
require('telescope').setup({
|
require('telescope').setup({
|
||||||
pickers = {
|
pickers = {
|
||||||
find_files = {
|
find_files = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
live_grep = {
|
live_grep = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
current_buffer_fuzzy_find = {
|
current_buffer_fuzzy_find = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
grep_string = {
|
grep_string = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
git_files = {
|
git_files = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
keymaps = {
|
keymaps = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
oldfiles = {
|
oldfiles = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
},
|
},
|
||||||
command_history = {
|
command_history = {
|
||||||
layout_config = {
|
layout_config = {
|
||||||
prompt_position = 'top',
|
prompt_position = 'top',
|
||||||
},
|
},
|
||||||
sorting_strategy = 'ascending',
|
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" },
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require('treesitter-context').setup {
|
require('treesitter-context').setup {
|
||||||
enable = true,
|
enable = true,
|
||||||
max_lines = 0,
|
max_lines = 0,
|
||||||
min_window_height = 0,
|
min_window_height = 0,
|
||||||
line_numbers = true,
|
line_numbers = true,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,68 +1,68 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
opts = {
|
opts = {
|
||||||
textobjects = {
|
textobjects = {
|
||||||
select = {
|
select = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|
||||||
-- Automatically jump forward to textobj, similar to targets.vim
|
-- Automatically jump forward to textobj, similar to targets.vim
|
||||||
lookahead = true,
|
lookahead = true,
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
-- You can use the capture groups defined in textobjects.scm
|
-- You can use the capture groups defined in textobjects.scm
|
||||||
["af"] = "@function.outer",
|
["af"] = "@function.outer",
|
||||||
["if"] = "@function.inner",
|
["if"] = "@function.inner",
|
||||||
["ap"] = "@parameter.outer",
|
["ap"] = "@parameter.outer",
|
||||||
["ip"] = "@parameter.inner",
|
["ip"] = "@parameter.inner",
|
||||||
["ac"] = "@comment.outer",
|
["ac"] = "@comment.outer",
|
||||||
["aS"] = "@statement.outer",
|
["aS"] = "@statement.outer",
|
||||||
["ae"] = "@block.outer",
|
["ae"] = "@block.outer",
|
||||||
["al"] = "@loop.outer",
|
["al"] = "@loop.outer",
|
||||||
["il"] = "@loop.inner",
|
["il"] = "@loop.inner",
|
||||||
["ar"] = "@return.outer",
|
["ar"] = "@return.outer",
|
||||||
["ir"] = "@return.inner",
|
["ir"] = "@return.inner",
|
||||||
["ia"] = "@assignment.rhs",
|
["ia"] = "@assignment.rhs",
|
||||||
["aa"] = "@assignment.inner",
|
["aa"] = "@assignment.inner",
|
||||||
["i?"] = "@conditional.inner",
|
["i?"] = "@conditional.inner",
|
||||||
["a?"] = "@conditional.outer",
|
["a?"] = "@conditional.outer",
|
||||||
["in"] = "@number.inner",
|
["in"] = "@number.inner",
|
||||||
["iC"] = "@class.inner",
|
["iC"] = "@class.inner",
|
||||||
["aC"] = "@class.outer",
|
["aC"] = "@class.outer",
|
||||||
["ig"] = "@call.inner",
|
["ig"] = "@call.inner",
|
||||||
["ag"] = "@call.outer",
|
["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,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,32 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
version = false,
|
version = false,
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
-- event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"c",
|
"c",
|
||||||
"lua",
|
"lua",
|
||||||
"rust",
|
"rust",
|
||||||
"latex",
|
"latex",
|
||||||
"bibtex",
|
"bibtex",
|
||||||
"python",
|
"python",
|
||||||
"vim",
|
"vim",
|
||||||
"yaml",
|
"yaml",
|
||||||
"json",
|
"json",
|
||||||
},
|
},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = {
|
disable = {
|
||||||
"markdown",
|
"markdown",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
config = function(_, opts)
|
||||||
},
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
config = function(_, opts)
|
end,
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
}
|
||||||
end,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"mbbill/undotree",
|
"mbbill/undotree",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = "toggle undotree" },
|
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = "toggle undotree" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.undotree_WindowLayout = 4
|
vim.g.undotree_WindowLayout = 4
|
||||||
vim.g.undotree_SplitWidth = 40
|
vim.g.undotree_SplitWidth = 40
|
||||||
vim.g.undotree_SetFocusWhenToggle = 1
|
vim.g.undotree_SetFocusWhenToggle = 1
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
window = {
|
window = {
|
||||||
backdrop = 1,
|
backdrop = 1,
|
||||||
width = 120,
|
width = 120,
|
||||||
},
|
},
|
||||||
plugins = {
|
plugins = {
|
||||||
options = {
|
options = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
showcmd = true,
|
showcmd = true,
|
||||||
laststatus = 3,
|
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),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue