chore(nvim): formatted code

This commit is contained in:
2026-04-02 13:41:37 -04:00
parent e7d41833d3
commit 7864f93652
5 changed files with 1607 additions and 1686 deletions
+56 -75
View File
@@ -1,43 +1,34 @@
return { return {
{ {
"mfussenegger/nvim-ansible", "mfussenegger/nvim-ansible",
lazy = true, lazy = true,
keys = function() keys = function()
vim.keymap.set('v', '<leader>te', function() require('ansible').run() end, { buffer = true, silent = true }) vim.keymap.set('v', '<leader>te', function() require('ansible').run() end, { buffer = true, silent = true })
vim.keymap.set('n', '<leader>te', ":w<CR> :lua require('ansible').run()<CR>", { buffer = true, silent = true }) vim.keymap.set('n', '<leader>te', ":w<CR> :lua require('ansible').run()<CR>", { buffer = true, silent = true })
end, end,
}, },
{
{ "hat0uma/csvview.nvim",
"hat0uma/csvview.nvim", opts = {
---@module "csvview" parser = { comments = { "#", "//" } },
---@type CsvView.Options keymaps = {
opts = { textobject_field_inner = { "if", mode = { "o", "x" } },
parser = { comments = { "#", "//" } }, textobject_field_outer = { "af", mode = { "o", "x" } },
keymaps = { jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
-- Text objects for selecting fields jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
textobject_field_inner = { "if", mode = { "o", "x" } }, jump_next_row = { "<Enter>", mode = { "n", "v" } },
textobject_field_outer = { "af", mode = { "o", "x" } }, jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
-- Excel-like navigation: },
-- Use <Tab> and <S-Tab> to move horizontally between fields. },
-- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field. cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
-- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>. },
jump_next_field_end = { "<Tab>", mode = { "n", "v" } }, {
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
jump_next_row = { "<Enter>", mode = { "n", "v" } },
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
},
},
cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
},
{
"obsidian-nvim/obsidian.nvim", "obsidian-nvim/obsidian.nvim",
lazy = false, lazy = false,
ft = "markdown", ft = "markdown",
keys = { keys = {
{ "<leader>kx", "<cmd>Obsidian extract_note<cr>", desc = "Extract Note", mode = "v" }, { "<leader>kx", "<cmd>Obsidian extract_note<cr>", desc = "Extract Note", mode = "v" },
{ "<leader>knn", "<cmd>Obsidian new<cr>", desc = "New Obsidian note", mode = "n" }, { "<leader>knn", "<cmd>Obsidian new<cr>", desc = "New Obsidian note", mode = "n" },
{ "<leader>knt", "<cmd>Obsidian new_from_template<cr>", desc = "New from template", mode = "n" }, { "<leader>knt", "<cmd>Obsidian new_from_template<cr>", desc = "New from template", mode = "n" },
@@ -82,9 +73,9 @@ return {
tags = "", tags = "",
}, },
completion = { completion = {
nvim_cmp = false, nvim_cmp = false,
blink = true, blink = true,
min_chars = 2, min_chars = 2,
}, },
link = { link = {
style = "wiki", style = "wiki",
@@ -119,8 +110,7 @@ return {
}) })
end, end,
}, },
{
{
"salkin-mada/openscad.nvim", "salkin-mada/openscad.nvim",
lazy = true, lazy = true,
config = function() config = function()
@@ -129,15 +119,14 @@ return {
end, end,
dependencies = { "L3MON4D3/LuaSnip", "junegunn/fzf.vim" }, dependencies = { "L3MON4D3/LuaSnip", "junegunn/fzf.vim" },
}, },
{
{
-- 'nvim-orgmode/orgmode', -- 'nvim-orgmode/orgmode',
'SjB/orgmode', 'SjB/orgmode',
branch = 'sjb-wip', branch = 'sjb-wip',
event = 'VeryLazy', event = 'VeryLazy',
ft = { 'org' }, ft = { 'org' },
config = function() config = function()
-- Setup orgmode -- Setup orgmode
local org = require('orgmode') local org = require('orgmode')
-- org.setup_ts_grammar() -- org.setup_ts_grammar()
org.setup({ org.setup({
@@ -177,8 +166,7 @@ return {
}) })
end, end,
}, },
{
{
"akinsho/org-bullets.nvim", "akinsho/org-bullets.nvim",
config = function() config = function()
require("org-bullets").setup { require("org-bullets").setup {
@@ -212,40 +200,37 @@ return {
} }
end end
}, },
{
{
"chipsenkbeil/org-roam.nvim", "chipsenkbeil/org-roam.nvim",
lazy = true, lazy = true,
ft = { 'org' }, ft = { 'org' },
opts = { opts = {
bindings = { bindings = {
prefix = "<LocalLeader>oO", prefix = "<LocalLeader>oO",
}, },
directory = "~/Documents/notes", directory = "~/Documents/notes",
extensions = { extensions = {
dailies = { dailies = {
directory = "journals" directory = "journals"
}, },
}, },
}, },
}, },
{
{ "iamcco/markdown-preview.nvim",
"iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, ft = { "markdown" },
ft = { "markdown" }, init = function()
init = function() vim.g.mkdp_filetypes = { "markdown" }
vim.g.mkdp_filetypes = { "markdown" } end,
end, keys = function()
keys = function() vim.keymap.set("n", "<leader>xmp", "<cmd>MarkdownPreview<CR>", { desc ="Markdown Preview" })
vim.keymap.set("n", "<leader>xmp", "<cmd>MarkdownPreview<CR>", { desc ="Markdown Preview" }) vim.keymap.set("n", "<leader>xms", "<cmd>MarkdownPreviewStop<CR>", { desc ="Markdown Preview Stop" })
vim.keymap.set("n", "<leader>xms", "<cmd>MarkdownPreviewStop<CR>", { desc ="Markdown Preview Stop" }) end,
end, build = function() vim.fn["mkdp#util#install"]() end,
build = function() vim.fn["mkdp#util#install"]() end, --build = "cd app && npm install",
--build = "cd app && npm install",
}, },
{
{
"lervag/vimtex", "lervag/vimtex",
ft = "tex", -- Load only for .tex files ft = "tex", -- Load only for .tex files
config = function() config = function()
@@ -256,14 +241,11 @@ return {
vim.g.tex_conceal = "abdmg" -- Conceal accents, bold, delimiters, math, Greek vim.g.tex_conceal = "abdmg" -- Conceal accents, bold, delimiters, math, Greek
end, end,
}, },
{
{
'MeanderingProgrammer/render-markdown.nvim', 'MeanderingProgrammer/render-markdown.nvim',
after = { 'nvim-treesitter' }, after = { 'nvim-treesitter' },
requires = { 'nvim-tree/nvim-web-devicons', opt = true }, requires = { 'nvim-tree/nvim-web-devicons', opt = true },
ft = { 'markdown', 'codecompanion', 'copilot-chat' }, ft = { 'markdown', 'codecompanion', 'copilot-chat' },
---@module 'render-markdown'
---@type render.md.UserConfig
config = function() config = function()
require('render-markdown').setup({ require('render-markdown').setup({
completions = { lsp = { enabled = true } }, completions = { lsp = { enabled = true } },
@@ -299,5 +281,4 @@ return {
}) })
end, end,
}, },
} }
File diff suppressed because it is too large Load Diff
+30 -43
View File
@@ -1,15 +1,11 @@
return { return {
{ "nvim-lua/plenary.nvim", lazy = true },
{ "nvim-lua/plenary.nvim", lazy = true }, { "nvim-tree/nvim-web-devicons", lazy = true, opts = {} },
{
{ "nvim-tree/nvim-web-devicons", lazy = true, opts = {} },
{
'nvim-mini/mini.extra', 'nvim-mini/mini.extra',
lazy = true, lazy = true,
}, },
{
{
'nvim-mini/mini.ai', 'nvim-mini/mini.ai',
lazy = false, lazy = false,
version = '*', version = '*',
@@ -35,14 +31,12 @@ return {
}) })
end end
}, },
{
{
'nvim-mini/mini.move', 'nvim-mini/mini.move',
lazy = false, lazy = false,
version = '*', version = '*',
opts = {} opts = {}
}, },
{ 'nvim-mini/mini.align', lazy = false, version = '*', opts = {} }, { 'nvim-mini/mini.align', lazy = false, version = '*', opts = {} },
{ 'nvim-mini/mini.bracketed', lazy = false, version = '*', opts = {} }, { 'nvim-mini/mini.bracketed', lazy = false, version = '*', opts = {} },
{ {
@@ -57,8 +51,7 @@ return {
sort = { prefix = 'gs', func = nil, } sort = { prefix = 'gs', func = nil, }
} }
}, },
{
{
'nvim-mini/mini.surround', 'nvim-mini/mini.surround',
lazy = false, lazy = false,
version = '*', version = '*',
@@ -82,21 +75,19 @@ return {
}, },
} }
}, },
{
{ 'nvim-mini/mini.splitjoin',
'nvim-mini/mini.splitjoin', lazy = false,
lazy = false, version = false,
version = false, config = function()
config = function() require('mini.splitjoin').setup()
require('mini.splitjoin').setup() end,
end, },
}, {
"nvim-mini/mini.hipatterns",
{ lazy = false,
"nvim-mini/mini.hipatterns", event = "BufReadPre",
lazy = false, config = function()
event = "BufReadPre",
config = function()
local MiniExtra = require("mini.extra") local MiniExtra = require("mini.extra")
local hi_words = MiniExtra.gen_highlighter.words local hi_words = MiniExtra.gen_highlighter.words
require('mini.hipatterns').setup({ require('mini.hipatterns').setup({
@@ -112,10 +103,9 @@ return {
-- hex_color = hipatterns.gen_highlighter.hex_color(), -- hex_color = hipatterns.gen_highlighter.hex_color(),
}, },
}) })
end, end,
}, },
{
{
'nvim-mini/mini.files', 'nvim-mini/mini.files',
event = 'VeryLazy', event = 'VeryLazy',
version = '*', version = '*',
@@ -133,17 +123,15 @@ return {
}, },
} }
}, },
{
{ 'nvim-mini/mini.sessions',
'nvim-mini/mini.sessions', version = '*',
version = '*', lazy = false,
lazy = false, config = function()
config = function() require('mini.sessions').setup()
require('mini.sessions').setup() end,
end, },
}, {
{
"folke/snacks.nvim", "folke/snacks.nvim",
priority = 1000, priority = 1000,
lazy = false, lazy = false,
@@ -421,5 +409,4 @@ return {
}) })
end, end,
}, },
} }
+243 -256
View File
@@ -1,208 +1,201 @@
return { return {
{
'Civitasv/cmake-tools.nvim',
lazy = true,
config = function ()
local osys = require("cmake-tools.osys")
require("cmake-tools").setup {
cmake_command = "cmake", -- this is used to specify cmake command path
ctest_command = "ctest", -- this is used to specify ctest command path
cmake_use_preset = true,
cmake_regenerate_on_save = true, -- auto generate when save CMakeLists.txt
cmake_generate_options = { "-DCMAKE_EXPORT_COMPILE_COMMANDS=1" }, -- this will be passed when invoke `CMakeGenerate`
cmake_build_options = {}, -- this will be passed when invoke `CMakeBuild`
-- support macro expansion:
-- ${kit}
-- ${kitGenerator}
-- ${variant:xx}
cmake_build_directory = function()
if osys.iswin32 then
return "out\\${variant:buildType}"
end
return "out/${variant:buildType}"
end, -- this is used to specify generate directory for cmake, allows macro expansion, can be a string or a function returning the string, relative to cwd.
cmake_soft_link_compile_commands = true, -- this will automatically make a soft link from compile commands file to project root dir
cmake_compile_commands_from_lsp = false, -- this will automatically set compile commands file location using lsp, to use it, please set `cmake_soft_link_compile_commands` to false
cmake_kits_path = nil, -- this is used to specify global cmake kits path, see CMakeKits for detailed usage
cmake_variants_message = {
short = { show = true }, -- whether to show short message
long = { show = true, max_length = 40 }, -- whether to show long message
},
cmake_dap_configuration = { -- debug settings for cmake
name = "cpp",
type = "codelldb",
request = "launch",
stopOnEntry = false,
runInTerminal = true,
console = "integratedTerminal",
},
cmake_executor = { -- executor to use
name = "quickfix", -- name of the executor
opts = {}, -- the options the executor will get, possible values depend on the executor type. See `default_opts` for possible values.
default_opts = { -- a list of default and possible values for executors
quickfix = {
show = "always", -- "always", "only_on_error"
position = "belowright", -- "vertical", "horizontal", "leftabove", "aboveleft", "rightbelow", "belowright", "topleft", "botright", use `:h vertical` for example to see help on them
size = 10,
encoding = "utf-8", -- if encoding is not "utf-8", it will be converted to "utf-8" using `vim.fn.iconv`
auto_close_when_success = true, -- typically, you can use it with the "always" option; it will auto-close the quickfix buffer if the execution is successful.
},
toggleterm = {
direction = "float", -- 'vertical' | 'horizontal' | 'tab' | 'float'
close_on_exit = false, -- whether close the terminal when exit
auto_scroll = true, -- whether auto scroll to the bottom
singleton = true, -- single instance, autocloses the opened one, if present
},
overseer = {
new_task_opts = {
strategy = {
"toggleterm",
direction = "horizontal",
autos_croll = true,
quit_on_exit = "success"
}
}, -- options to pass into the `overseer.new_task` command
on_new_task = function(task)
require("overseer").open(
{ enter = false, direction = "right" }
)
end, -- a function that gets overseer.Task when it is created, before calling `task:start`
},
terminal = {
name = "Main Terminal",
prefix_name = "[CMakeTools]: ", -- This must be included and must be unique, otherwise the terminals will not work. Do not use a simple spacebar " ", or any generic name
split_direction = "horizontal", -- "horizontal", "vertical"
split_size = 11,
{ -- Window handling
'Civitasv/cmake-tools.nvim', single_terminal_per_instance = true, -- Single viewport, multiple windows
lazy = true, single_terminal_per_tab = true, -- Single viewport per tab
config = function () keep_terminal_static_location = true, -- Static location of the viewport if avialable
local osys = require("cmake-tools.osys") auto_resize = true, -- Resize the terminal if it already exists
require("cmake-tools").setup {
cmake_command = "cmake", -- this is used to specify cmake command path
ctest_command = "ctest", -- this is used to specify ctest command path
cmake_use_preset = true,
cmake_regenerate_on_save = true, -- auto generate when save CMakeLists.txt
cmake_generate_options = { "-DCMAKE_EXPORT_COMPILE_COMMANDS=1" }, -- this will be passed when invoke `CMakeGenerate`
cmake_build_options = {}, -- this will be passed when invoke `CMakeBuild`
-- support macro expansion:
-- ${kit}
-- ${kitGenerator}
-- ${variant:xx}
cmake_build_directory = function()
if osys.iswin32 then
return "out\\${variant:buildType}"
end
return "out/${variant:buildType}"
end, -- this is used to specify generate directory for cmake, allows macro expansion, can be a string or a function returning the string, relative to cwd.
cmake_soft_link_compile_commands = true, -- this will automatically make a soft link from compile commands file to project root dir
cmake_compile_commands_from_lsp = false, -- this will automatically set compile commands file location using lsp, to use it, please set `cmake_soft_link_compile_commands` to false
cmake_kits_path = nil, -- this is used to specify global cmake kits path, see CMakeKits for detailed usage
cmake_variants_message = {
short = { show = true }, -- whether to show short message
long = { show = true, max_length = 40 }, -- whether to show long message
},
cmake_dap_configuration = { -- debug settings for cmake
name = "cpp",
type = "codelldb",
request = "launch",
stopOnEntry = false,
runInTerminal = true,
console = "integratedTerminal",
},
cmake_executor = { -- executor to use
name = "quickfix", -- name of the executor
opts = {}, -- the options the executor will get, possible values depend on the executor type. See `default_opts` for possible values.
default_opts = { -- a list of default and possible values for executors
quickfix = {
show = "always", -- "always", "only_on_error"
position = "belowright", -- "vertical", "horizontal", "leftabove", "aboveleft", "rightbelow", "belowright", "topleft", "botright", use `:h vertical` for example to see help on them
size = 10,
encoding = "utf-8", -- if encoding is not "utf-8", it will be converted to "utf-8" using `vim.fn.iconv`
auto_close_when_success = true, -- typically, you can use it with the "always" option; it will auto-close the quickfix buffer if the execution is successful.
},
toggleterm = {
direction = "float", -- 'vertical' | 'horizontal' | 'tab' | 'float'
close_on_exit = false, -- whether close the terminal when exit
auto_scroll = true, -- whether auto scroll to the bottom
singleton = true, -- single instance, autocloses the opened one, if present
},
overseer = {
new_task_opts = {
strategy = {
"toggleterm",
direction = "horizontal",
autos_croll = true,
quit_on_exit = "success"
}
}, -- options to pass into the `overseer.new_task` command
on_new_task = function(task)
require("overseer").open(
{ enter = false, direction = "right" }
)
end, -- a function that gets overseer.Task when it is created, before calling `task:start`
},
terminal = {
name = "Main Terminal",
prefix_name = "[CMakeTools]: ", -- This must be included and must be unique, otherwise the terminals will not work. Do not use a simple spacebar " ", or any generic name
split_direction = "horizontal", -- "horizontal", "vertical"
split_size = 11,
-- Window handling -- Running Tasks
single_terminal_per_instance = true, -- Single viewport, multiple windows start_insert = false, -- If you want to enter terminal with :startinsert upon using :CMakeRun
single_terminal_per_tab = true, -- Single viewport per tab focus = false, -- Focus on terminal when cmake task is launched.
keep_terminal_static_location = true, -- Static location of the viewport if avialable do_not_add_newline = false, -- Do not hit enter on the command inserted when using :CMakeRun, allowing a chance to review or modify the command before hitting enter.
auto_resize = true, -- Resize the terminal if it already exists }, -- terminal executor uses the values in cmake_terminal
},
},
cmake_runner = { -- runner to use
name = "terminal", -- name of the runner
opts = {}, -- the options the runner will get, possible values depend on the runner type. See `default_opts` for possible values.
default_opts = { -- a list of default and possible values for runners
quickfix = {
show = "always", -- "always", "only_on_error"
position = "belowright", -- "bottom", "top"
size = 10,
encoding = "utf-8",
auto_close_when_success = true, -- typically, you can use it with the "always" option; it will auto-close the quickfix buffer if the execution is successful.
},
toggleterm = {
direction = "float", -- 'vertical' | 'horizontal' | 'tab' | 'float'
close_on_exit = false, -- whether close the terminal when exit
auto_scroll = true, -- whether auto scroll to the bottom
singleton = true, -- single instance, autocloses the opened one, if present
},
overseer = {
new_task_opts = {
strategy = {
"toggleterm",
direction = "horizontal",
autos_croll = true,
quit_on_exit = "success"
}
}, -- options to pass into the `overseer.new_task` command
on_new_task = function(task)
end, -- a function that gets overseer.Task when it is created, before calling `task:start`
},
terminal = {
name = "Main Terminal",
prefix_name = "[CMakeTools]: ", -- This must be included and must be unique, otherwise the terminals will not work. Do not use a simple spacebar " ", or any generic name
split_direction = "horizontal", -- "horizontal", "vertical"
split_size = 11,
-- Running Tasks -- Window handling
start_insert = false, -- If you want to enter terminal with :startinsert upon using :CMakeRun single_terminal_per_instance = true, -- Single viewport, multiple windows
focus = false, -- Focus on terminal when cmake task is launched. single_terminal_per_tab = true, -- Single viewport per tab
do_not_add_newline = false, -- Do not hit enter on the command inserted when using :CMakeRun, allowing a chance to review or modify the command before hitting enter. keep_terminal_static_location = true, -- Static location of the viewport if avialable
}, -- terminal executor uses the values in cmake_terminal auto_resize = true, -- Resize the terminal if it already exists
},
},
cmake_runner = { -- runner to use
name = "terminal", -- name of the runner
opts = {}, -- the options the runner will get, possible values depend on the runner type. See `default_opts` for possible values.
default_opts = { -- a list of default and possible values for runners
quickfix = {
show = "always", -- "always", "only_on_error"
position = "belowright", -- "bottom", "top"
size = 10,
encoding = "utf-8",
auto_close_when_success = true, -- typically, you can use it with the "always" option; it will auto-close the quickfix buffer if the execution is successful.
},
toggleterm = {
direction = "float", -- 'vertical' | 'horizontal' | 'tab' | 'float'
close_on_exit = false, -- whether close the terminal when exit
auto_scroll = true, -- whether auto scroll to the bottom
singleton = true, -- single instance, autocloses the opened one, if present
},
overseer = {
new_task_opts = {
strategy = {
"toggleterm",
direction = "horizontal",
autos_croll = true,
quit_on_exit = "success"
}
}, -- options to pass into the `overseer.new_task` command
on_new_task = function(task)
end, -- a function that gets overseer.Task when it is created, before calling `task:start`
},
terminal = {
name = "Main Terminal",
prefix_name = "[CMakeTools]: ", -- This must be included and must be unique, otherwise the terminals will not work. Do not use a simple spacebar " ", or any generic name
split_direction = "horizontal", -- "horizontal", "vertical"
split_size = 11,
-- Window handling -- Running Tasks
single_terminal_per_instance = true, -- Single viewport, multiple windows start_insert = false, -- If you want to enter terminal with :startinsert upon using :CMakeRun
single_terminal_per_tab = true, -- Single viewport per tab focus = false, -- Focus on terminal when cmake task is launched.
keep_terminal_static_location = true, -- Static location of the viewport if avialable do_not_add_newline = false, -- Do not hit enter on the command inserted when using :CMakeRun, allowing a chance to review or modify the command before hitting enter.
auto_resize = true, -- Resize the terminal if it already exists },
},
-- Running Tasks },
start_insert = false, -- If you want to enter terminal with :startinsert upon using :CMakeRun cmake_notifications = {
focus = false, -- Focus on terminal when cmake task is launched. runner = { enabled = true },
do_not_add_newline = false, -- Do not hit enter on the command inserted when using :CMakeRun, allowing a chance to review or modify the command before hitting enter. executor = { enabled = true },
}, spinner = { "⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏" }, -- icons used for progress display
}, refresh_rate_ms = 100, -- how often to iterate icons
}, },
cmake_notifications = { cmake_virtual_text_support = true, -- Show the target related to current file using virtual text (at right corner)
runner = { enabled = true }, }
executor = { enabled = true }, end,
spinner = { "⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏" }, -- icons used for progress display
refresh_rate_ms = 100, -- how often to iterate icons
},
cmake_virtual_text_support = true, -- Show the target related to current file using virtual text (at right corner)
}
end,
},
{
"al1-ce/just.nvim",
dependencies = {
'nvim-lua/plenary.nvim', -- async jobs
'j-hui/fidget.nvim', -- task progress (optional)
}, },
config = true {
}, "al1-ce/just.nvim",
dependencies = {
{ 'nvim-lua/plenary.nvim', -- async jobs
'mistweaverco/kulala.nvim', 'j-hui/fidget.nvim', -- task progress (optional)
ft = {"http", "rest"}, },
}, config = true
{
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- add options here
-- or leave it empty to use the default settings
},
keys = {
-- suggested keymap
{ "<leader>kp", "<cmd>PasteImage<cr>", desc = "Paste image from system clipboard" },
},
},
{
"uhs-robert/sshfs.nvim",
opts = {
mounts = {
base_dir = vim.fn.expand("$HOME") .. "/Public", -- where remote mounts are created
},
-- Refer to the configuration section below
-- or leave empty for defaults
},
},
{
"esmuellert/codediff.nvim",
dependencies = { "MunifTanjim/nui.nvim" },
cmd = "CodeDiff",
},
{
"ejrichards/mise.nvim",
keys = {
{ "<leader>xm", "<cmd>Lazy reload mise.nvim<cr>", desc = "Reload mise environment" }
},
opts = {
unset_vars = true,
load_on_setup = true,
force_run = true,
}
}, },
{
{ 'mistweaverco/kulala.nvim',
ft = {"http", "rest"},
},
{
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- add options here
-- or leave it empty to use the default settings
},
keys = {
-- suggested keymap
{ "<leader>kp", "<cmd>PasteImage<cr>", desc = "Paste image from system clipboard" },
},
},
{
"uhs-robert/sshfs.nvim",
opts = {
mounts = {
base_dir = vim.fn.expand("$HOME") .. "/Public", -- where remote mounts are created
},
-- Refer to the configuration section below
-- or leave empty for defaults
},
},
{
"esmuellert/codediff.nvim",
dependencies = { "MunifTanjim/nui.nvim" },
cmd = "CodeDiff",
},
{
"ejrichards/mise.nvim",
keys = {
{ "<leader>xm", "<cmd>Lazy reload mise.nvim<cr>", desc = "Reload mise environment" }
},
opts = {
unset_vars = true,
load_on_setup = true,
force_run = true,
}
},
{
'NeogitOrg/neogit', 'NeogitOrg/neogit',
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', -- required 'nvim-lua/plenary.nvim', -- required
@@ -210,8 +203,8 @@ return {
}, },
lazy = true, lazy = true,
keys = { keys = {
{ '<leader>gn', "<cmd>Neogit kind=auto<cr>", desc = 'Neogit'}, { '<leader>gn', "<cmd>Neogit kind=auto<cr>", desc = 'Neogit'},
{ '<leader>gN', "<cmd>Neogit kind=floating<cr>", desc = 'Neogit'} { '<leader>gN', "<cmd>Neogit kind=floating<cr>", desc = 'Neogit'}
}, },
opts = { opts = {
-- disable_context_highlighting = true, -- disable_context_highlighting = true,
@@ -219,19 +212,18 @@ return {
disable_insert_on_commit = false, disable_insert_on_commit = false,
disable_signs = true, disable_signs = true,
integrations = { diffview = true, fz_lua = false }, integrations = { diffview = true, fz_lua = false },
auto_refresh = false, auto_refresh = false,
console_timeout = 5000, console_timeout = 5000,
auto_show_console = false, auto_show_console = false,
sections = { sections = {
stashes = { stashes = {
folded = false, folded = false,
}, },
recent = { folded = false }, recent = { folded = false },
}, },
} }
}, },
{
{
'stevearc/overseer.nvim', 'stevearc/overseer.nvim',
keys = { keys = {
{ "<leader>xo", "<cmd>OverseerOpen<CR>", desc = "Open Overseer" }, { "<leader>xo", "<cmd>OverseerOpen<CR>", desc = "Open Overseer" },
@@ -275,41 +267,38 @@ return {
end, end,
}, },
{
{
'stevearc/quicker.nvim', 'stevearc/quicker.nvim',
event = "FileType qf", event = "FileType qf",
---@module "quicker" ---@module "quicker"
---@type quicker.SetupOptions ---@type quicker.SetupOptions
opts = {}, opts = {},
}, },
{
{ "saxon1964/neovim-tips",
"saxon1964/neovim-tips", version = "*", -- Only update on tagged releases
version = "*", -- Only update on tagged releases lazy = false, -- Load on startup (recommended for daily tip feature)
lazy = false, -- Load on startup (recommended for daily tip feature) dependencies = {
dependencies = { "MunifTanjim/nui.nvim",
"MunifTanjim/nui.nvim", -- OPTIONAL: Choose your preferred markdown renderer (or omit for raw markdown)
-- OPTIONAL: Choose your preferred markdown renderer (or omit for raw markdown) "MeanderingProgrammer/render-markdown.nvim", -- Clean rendering
"MeanderingProgrammer/render-markdown.nvim", -- Clean rendering -- OR: "OXY2DEV/markview.nvim", -- Rich rendering with advanced features
-- OR: "OXY2DEV/markview.nvim", -- Rich rendering with advanced features },
}, opts = {
opts = { -- OPTIONAL: Location of user defined tips (default value shown below)
-- OPTIONAL: Location of user defined tips (default value shown below) user_file = vim.fn.stdpath("config") .. "/neovim_tips/user_tips.md",
user_file = vim.fn.stdpath("config") .. "/neovim_tips/user_tips.md", -- OPTIONAL: Prefix for user tips to avoid conflicts (default: "[User] ")
-- OPTIONAL: Prefix for user tips to avoid conflicts (default: "[User] ") user_tip_prefix = "[User] ",
user_tip_prefix = "[User] ", -- OPTIONAL: Show warnings when user tips conflict with builtin (default: true)
-- OPTIONAL: Show warnings when user tips conflict with builtin (default: true) warn_on_conflicts = true,
warn_on_conflicts = true, -- OPTIONAL: Daily tip mode (default: 1)
-- OPTIONAL: Daily tip mode (default: 1) -- 0 = off, 1 = once per day, 2 = every startup
-- 0 = off, 1 = once per day, 2 = every startup daily_tip = 1,
daily_tip = 1, -- OPTIONAL: Bookmark symbol (default: "🌟 ")
-- OPTIONAL: Bookmark symbol (default: "🌟 ") bookmark_symbol = "🌟 ",
bookmark_symbol = "🌟 ", },
}, },
}, {
{
"nvim-pack/nvim-spectre", "nvim-pack/nvim-spectre",
lazy = true, lazy = true,
cmd = { "Spectre" }, cmd = { "Spectre" },
@@ -331,23 +320,21 @@ return {
}, },
} }
}, },
{
{ "thunder-coding/zincoxide",
"thunder-coding/zincoxide", opts = {
opts = { -- name of zoxide binary in your "$PATH" or path to the binary
-- name of zoxide binary in your "$PATH" or path to the binary -- the command is executed using vim.fn.system()
-- the command is executed using vim.fn.system() -- eg. "zoxide" or "/usr/bin/zoxide"
-- eg. "zoxide" or "/usr/bin/zoxide" zincoxide_cmd = "zoxide",
zincoxide_cmd = "zoxide", -- Kinda experimental as of now
-- Kinda experimental as of now complete = true,
complete = true, -- Available options { "tabs", "window", "global" }
-- Available options { "tabs", "window", "global" } behaviour = "tabs",
behaviour = "tabs", },
}, cmd = { "Z", "Zg", "Zt", "Zw" },
cmd = { "Z", "Zg", "Zt", "Zw" },
}, },
{
{
"folke/persistence.nvim", "folke/persistence.nvim",
event = "BufReadPre", event = "BufReadPre",
opts = { options = { "buffers", "curdir", "tabpages", "winsize", "help", "globals", "skiprtp" } }, opts = { options = { "buffers", "curdir", "tabpages", "winsize", "help", "globals", "skiprtp" } },
+175 -187
View File
@@ -1,6 +1,5 @@
return { return {
{
{
"otavioschwanck/arrow.nvim", "otavioschwanck/arrow.nvim",
dependencies = { dependencies = {
{ {
@@ -15,8 +14,7 @@ return {
buffer_leader_key = '<leader>;', -- Per Buffer Mappings buffer_leader_key = '<leader>;', -- Per Buffer Mappings
} }
}, },
{
{
"utilyre/barbecue.nvim", "utilyre/barbecue.nvim",
dependencies = { dependencies = {
{ 'SmiteshP/nvim-navic', lazy = true }, { 'SmiteshP/nvim-navic', lazy = true },
@@ -24,8 +22,7 @@ return {
event = "VeryLazy", event = "VeryLazy",
opts = {}, opts = {},
}, },
{
{
"folke/flash.nvim", "folke/flash.nvim",
event = "VeryLazy", event = "VeryLazy",
---@type Flash.Config ---@type Flash.Config
@@ -63,8 +60,7 @@ return {
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
}, },
}, },
{
{
"folke/snacks.nvim", "folke/snacks.nvim",
opts = { opts = {
notifier = { notifier = {
@@ -102,175 +98,168 @@ return {
}, },
}, },
}, },
{
'nvim-lualine/lualine.nvim',
event = "VeryLazy",
config = function()
local function truncate_branch_name(branch)
if not branch or branch == "" then
return ""
end
{ -- Match the branch name to the specified format
'nvim-lualine/lualine.nvim', local _, _, ticket_number = string.find(branch, "skdillon/sko%-(%d+)%-")
event = "VeryLazy",
config = function()
local function truncate_branch_name(branch)
if not branch or branch == "" then
return ""
end
-- Match the branch name to the specified format -- If the branch name matches the format, display sko-{ticket_number}, otherwise display the full branch name
local _, _, ticket_number = string.find(branch, "skdillon/sko%-(%d+)%-") if ticket_number then
return "sko-" .. ticket_number
else
return branch
end
end
-- If the branch name matches the format, display sko-{ticket_number}, otherwise display the full branch name require("lualine").setup({
if ticket_number then options = {
return "sko-" .. ticket_number -- theme = "rose-pine",
else globalstatus = true,
return branch -- component_separators = { left = "", right = "" },
end -- section_separators = { left = "█", right = "█" },
end icons_enabled = true,
component_separators = { left = '', right = ''},
require("lualine").setup({ section_separators = { left = '', right = ''},
options = { tabline = {
-- theme = "rose-pine", lualine_a = {},
globalstatus = true, lualine_b = {'branch'},
-- component_separators = { left = "", right = "" }, lualine_c = {'filename'},
-- section_separators = { left = "█", right = "█" }, lualine_x = {},
icons_enabled = true, lualine_y = {},
component_separators = { left = '', right = ''}, lualine_z = {}
section_separators = { left = '', right = ''}, },
tabline = { },
lualine_a = {}, sections = {
lualine_b = {'branch'}, lualine_b = {
lualine_c = {'filename'}, { "branch", icon = "", fmt = truncate_branch_name },
lualine_x = {}, "diff",
lualine_y = {}, "diagnostics",
lualine_z = {} },
}, lualine_c = {
}, { 'lsp_progress' },
sections = { {
lualine_b = { 'buffers',
{ "branch", icon = "", fmt = truncate_branch_name }, show_filename_only = true, -- Shows shortened relative path when set to false.
"diff", hide_filename_extension = false, -- Hide filename extension when set to true.
"diagnostics", show_modified_status = true, -- Shows indicator when the buffer is modified.
}, mode = 0,
lualine_c = { max_length = vim.o.columns * 2 / 3,
{ 'lsp_progress' }, filetype_names = {
{ TelescopePrompt = '',
'buffers', },
show_filename_only = true, -- Shows shortened relative path when set to false. -- it can also be a function that returns
hide_filename_extension = false, -- Hide filename extension when set to true. -- the value of `max_length` dynamically.
show_modified_status = true, -- Shows indicator when the buffer is modified. use_mode_colors = false,
mode = 0, symbols = {
max_length = vim.o.columns * 2 / 3, modified = ' ●', -- Text to show when the buffer is modified
filetype_names = { alternate_file = '#', -- Text to show to identify the alternate file
TelescopePrompt = '', directory = '', -- Text to show when the buffer is a directory
}, },
-- it can also be a function that returns },
-- the value of `max_length` dynamically. },
use_mode_colors = false, lualine_x = {
symbols = { "windows",
modified = ' ●', -- Text to show when the buffer is modified "fileformat",
alternate_file = '#', -- Text to show to identify the alternate file "filetype",
directory = '', -- Text to show when the buffer is a directory },
}, },
}, })
}, end,
lualine_x = { },
"windows", {
"fileformat", "hedyhli/outline.nvim",
"filetype", lazy = true,
}, cmd = { "Outline", "OutlineOpen" },
}, keys = { -- Example mapping to toggle outline
}) { "<leader>so", "<cmd>Outline<CR>", desc = "Toggle outline" },
end, },
}, opts = {
symbol_folding = {
{ -- Unfold entire symbol tree by default with false, otherwise enter a
"hedyhli/outline.nvim", -- number starting from 1
lazy = true, autofold_depth = false,
cmd = { "Outline", "OutlineOpen" }, -- autofold_depth = 1,
keys = { -- Example mapping to toggle outline },
{ "<leader>so", "<cmd>Outline<CR>", desc = "Toggle outline" },
},
opts = {
symbol_folding = {
-- Unfold entire symbol tree by default with false, otherwise enter a
-- number starting from 1
autofold_depth = false,
-- autofold_depth = 1,
}, },
},
}, },
{
{ 'stevearc/quicker.nvim',
'stevearc/quicker.nvim', ft = "qf",
ft = "qf", ---@module "quicker"
---@module "quicker" ---@type quicker.SetupOptions
---@type quicker.SetupOptions opts = {},
opts = {},
},
{
"christoomey/vim-tmux-navigator",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
"TmuxNavigatePrevious",
},
keys = {
{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
{ "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
{ "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
-- { "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" },
},
}, },
{
{ "christoomey/vim-tmux-navigator",
'akinsho/toggleterm.nvim', cmd = {
lazy = false, "TmuxNavigateLeft",
config = function() "TmuxNavigateDown",
require("toggleterm").setup({ "TmuxNavigateUp",
-- highlights = require("rose-pine.plugins.toggleterm"), "TmuxNavigateRight",
size = 20, "TmuxNavigatePrevious",
open_mapping = [[<c-\>]], },
hide_numbers = true, keys = {
shade_terminals = true, { "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
shading_factor = 2, { "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
start_in_insert = true, { "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
insert_mappings = true, { "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
persiste_size = true, -- { "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" },
direction = 'horizontal', },
close_on_exit = true, },
float_opts = { {
border = "curved", 'akinsho/toggleterm.nvim',
} lazy = false,
}) config = function()
end, require("toggleterm").setup({
keys = { -- highlights = require("rose-pine.plugins.toggleterm"),
{ "<Esc><Esc>", "<c-\\><c-n>", desc = "Escape input", mode = { "t" } } size = 20,
}, open_mapping = [[<c-\>]],
}, hide_numbers = true,
shade_terminals = true,
{ shading_factor = 2,
start_in_insert = true,
insert_mappings = true,
persiste_size = true,
direction = 'horizontal',
close_on_exit = true,
float_opts = {
border = "curved",
}
})
end,
keys = {
{ "<Esc><Esc>", "<c-\\><c-n>", desc = "Escape input", mode = { "t" } }
},
},
{
'ten3roberts/window-picker.nvim', 'ten3roberts/window-picker.nvim',
opts = { opts = {
-- Default keys to annotate, keys will be used in order. The default uses the -- Default keys to annotate, keys will be used in order. The default uses the
-- most accessible keys from the home row and then top row. -- most accessible keys from the home row and then top row.
keys = 'alskdjfhgwoeiruty', keys = 'alskdjfhgwoeiruty',
-- Swap windows by holding shift + letter -- Swap windows by holding shift + letter
swap_shift = true, swap_shift = true,
-- Windows containing filetype to exclude -- Windows containing filetype to exclude
exclude = { qf = true, NvimTree = true, aerial = true }, exclude = { qf = true, NvimTree = true, aerial = true },
-- Flash the cursor line of the newly focused window for 300ms. -- Flash the cursor line of the newly focused window for 300ms.
-- Set to 0 or false to disable. -- Set to 0 or false to disable.
flash_duration = 300, flash_duration = 300,
}, },
keys = { keys = {
{ "<leader>a", "<cmd>WindowPick<cr>", desc = "Windows Pick"}, { "<leader>a", "<cmd>WindowPick<cr>", desc = "Windows Pick"},
{ "<C-w>a", "<cmd>WindowPick<cr>", desc = "Windows Pick"}, { "<C-w>a", "<cmd>WindowPick<cr>", desc = "Windows Pick"},
{ "<C-w>D", "<cmd>WindowZap<cr>", desc = "Windows Delete"}, { "<C-w>D", "<cmd>WindowZap<cr>", desc = "Windows Delete"},
{ "<C-w>S", "<cmd>WindowSwap<cr>", desc = "Windows Swap"}, { "<C-w>S", "<cmd>WindowSwap<cr>", desc = "Windows Swap"},
}, },
}, },
{
{
"folke/which-key.nvim", "folke/which-key.nvim",
event = "VimEnter", event = "VimEnter",
opts = { opts = {
@@ -311,26 +300,25 @@ return {
}, },
}, },
spec = { spec = {
{ "g", group = "+goto" }, { "g", group = "+goto" },
{ "]", group = "+next" }, { "]", group = "+next" },
{ "[", group = "+prev" }, { "[", group = "+prev" },
{ "<leader>c", group = "+code", mode = { 'n', 'x' } }, { "<leader>c", group = "+code", mode = { 'n', 'x' } },
{ "<leader>b", group = "+buffer" }, { "<leader>b", group = "+buffer" },
{ "<leader>f", group = "+find" }, { "<leader>f", group = "+find" },
{ "<leader>g", group = "+goto" }, { "<leader>g", group = "+goto" },
{ "<leader>k", group = "+obsidian" }, { "<leader>k", group = "+obsidian" },
{ "<leader>l", group = "+lsp" }, { "<leader>l", group = "+lsp" },
{ "<leader>m", group = "+bookmark" }, { "<leader>m", group = "+bookmark" },
{ "<leader>o", group = "+notes" }, { "<leader>o", group = "+notes" },
{ "<leader>r", group = "+ai" }, { "<leader>r", group = "+ai" },
{ "<leader>s", group = "+search" }, { "<leader>s", group = "+search" },
{ "<leader>t", group = "+trouble" }, { "<leader>t", group = "+trouble" },
{ "<leader>v", group = "+vcs", mode = { 'n', 'v' } }, { "<leader>v", group = "+vcs", mode = { 'n', 'v' } },
{ "<leader>w", group = "+workspace" }, { "<leader>w", group = "+workspace" },
{ "<leader>x", group = "+extra" }, { "<leader>x", group = "+extra" },
{ "<leader>u", group = "+toggle" }, { "<leader>u", group = "+toggle" },
}, },
}, },
}, },
} }