mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2025-03-30
Update 2025-03-08 Update 2025-03-09 Update 2025-03-10 Update 2025-03-12 Update 2025-03-15 Update 2025-03-16 Update 2025-03-17 Update 2025-03-18 Update 2025-03-21 Update 2025-03-23 Update 2025-03-27 Update 2025-03-28 Update 2025-03-30
This commit is contained in:
@@ -125,3 +125,14 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
||||
vim.opt_local.colorcolumn = "80"
|
||||
end
|
||||
]]
|
||||
|
||||
vim.api.nvim_create_user_command("OpenPdf", function()
|
||||
local filepath = vim.api.nvim_buf_get_name(0)
|
||||
if filepath:match("%.typ$") then
|
||||
os.execute(
|
||||
"zathura "
|
||||
.. vim.fn.shellescape(filepath:gsub("%.typ$", ".pdf"):gsub("/([^/]+)%.pdf$", "/target/%1.pdf"))
|
||||
.. " 2>/dev/null &"
|
||||
)
|
||||
end
|
||||
end, {})
|
||||
|
||||
@@ -4,7 +4,7 @@ local vmap = require("config.mappings").vmap
|
||||
local tmap = require("config.mappings").tmap
|
||||
local imap = require("config.mappings").imap
|
||||
|
||||
-- Unpam keys
|
||||
-- Unmap keys
|
||||
vim.keymap.set("", "<space>", "<nop>")
|
||||
nmap("Q", "<nop>")
|
||||
nmap("<C-space>", "<nop>")
|
||||
|
||||
@@ -1,36 +1,32 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
local opts = {
|
||||
ui = {
|
||||
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
|
||||
border = "rounded",
|
||||
},
|
||||
change_detection = {
|
||||
-- automatically check for config file changes and reload the ui
|
||||
enabled = false,
|
||||
notify = true, -- get a notification when changes are found
|
||||
},
|
||||
install = {
|
||||
-- try to load one of these colorschemes when starting an installation during startup
|
||||
colorscheme = { "rose-pine" },
|
||||
},
|
||||
rocks = {
|
||||
hererocks = true, -- recommended if you do not have global installation of Lua 5.1.
|
||||
},
|
||||
}
|
||||
|
||||
require("lazy").setup("plugins", opts)
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = { { import = "plugins" } },
|
||||
install = { colorscheme = { "rose-pine" } },
|
||||
ui = { border = "rounded" },
|
||||
change_detection = { enabled = false },
|
||||
})
|
||||
|
||||
@@ -4,6 +4,8 @@ return {
|
||||
dependencies = {
|
||||
"folke/lazydev.nvim",
|
||||
"echasnovski/mini.icons",
|
||||
"jdrupal-dev/css-vars.nvim",
|
||||
"xzbdmw/colorful-menu.nvim",
|
||||
{ "L3MON4D3/LuaSnip", version = "v2.*" },
|
||||
{
|
||||
"Saecki/crates.nvim",
|
||||
@@ -71,14 +73,24 @@ return {
|
||||
"lsp",
|
||||
"path",
|
||||
"buffer",
|
||||
"dbee",
|
||||
"snippets",
|
||||
"ripgrep",
|
||||
"obsidian",
|
||||
-- "markdown",
|
||||
"jupynium",
|
||||
"css_vars",
|
||||
},
|
||||
per_filetype = {
|
||||
sql = { "dbee", "buffer", "snippets" },
|
||||
musql = { "dbee", "buffer", "snippets" },
|
||||
plsql = { "dbee", "buffer", "snippets" },
|
||||
markdown = { "lsp", "obsidian", "ripgrep", "buffer", "path", "snippets" },
|
||||
},
|
||||
providers = {
|
||||
buffer = {
|
||||
score_offset = -50,
|
||||
opts = {
|
||||
prefix_min_len = 3,
|
||||
},
|
||||
},
|
||||
lazydev = {
|
||||
name = "LazyDev",
|
||||
module = "lazydev.integrations.blink",
|
||||
@@ -99,17 +111,12 @@ return {
|
||||
module = "blink.compat.source",
|
||||
score_offset = 10,
|
||||
},
|
||||
-- markdown = {
|
||||
-- name = "RenderMarkdown",
|
||||
-- module = "render-markdown.integ.blink",
|
||||
-- score_offset = 10,
|
||||
-- fallbacks = { "lsp" },
|
||||
-- },
|
||||
ripgrep = {
|
||||
module = "blink-ripgrep",
|
||||
name = "Ripgrep",
|
||||
score_offset = -100,
|
||||
opts = {
|
||||
prefix_min_len = 3,
|
||||
prefix_min_len = 5,
|
||||
context_size = 5,
|
||||
max_filesize = "1M",
|
||||
project_root_marker = { ".git", "package.json", ".root" },
|
||||
@@ -127,7 +134,7 @@ return {
|
||||
jupynium = {
|
||||
name = "jupynium",
|
||||
module = "blink.compat.source",
|
||||
score_offset = 1000,
|
||||
score_offset = 100,
|
||||
},
|
||||
git = {
|
||||
score_offset = 100,
|
||||
@@ -139,8 +146,23 @@ return {
|
||||
end,
|
||||
opts = {},
|
||||
},
|
||||
css_vars = {
|
||||
name = "css-vars",
|
||||
module = "css-vars.blink",
|
||||
opts = {
|
||||
-- WARNING: The search is not optimized to look for variables in JS files.
|
||||
-- If you change the search_extensions you might get false positives and weird completion results.
|
||||
search_extensions = { ".js", ".ts", ".jsx", ".tsx" },
|
||||
},
|
||||
},
|
||||
snippets = {
|
||||
score_offset = -10,
|
||||
},
|
||||
},
|
||||
},
|
||||
cmdline = {
|
||||
enabled = false,
|
||||
},
|
||||
completion = {
|
||||
-- 'prefix' will fuzzy match on the text before the cursor
|
||||
-- 'full' will fuzzy match on the text before *and* after the cursor
|
||||
@@ -156,18 +178,12 @@ return {
|
||||
},
|
||||
list = {
|
||||
selection = {
|
||||
preselect = function(ctx)
|
||||
return ctx.mode ~= "cmdline"
|
||||
end,
|
||||
auto_insert = function(ctx)
|
||||
return ctx.mode ~= "cmdline"
|
||||
end,
|
||||
preselect = true,
|
||||
auto_insert = true,
|
||||
},
|
||||
},
|
||||
menu = {
|
||||
auto_show = function(ctx)
|
||||
return ctx.mode ~= "cmdline"
|
||||
end,
|
||||
auto_show = true,
|
||||
border = "single",
|
||||
draw = {
|
||||
columns = { { "kind_icon" }, { "label", "label_description", gap = 1 }, { "kind" } },
|
||||
@@ -184,6 +200,14 @@ return {
|
||||
return hl
|
||||
end,
|
||||
},
|
||||
label = {
|
||||
text = function(ctx)
|
||||
return require("colorful-menu").blink_components_text(ctx)
|
||||
end,
|
||||
highlight = function(ctx)
|
||||
return require("colorful-menu").blink_components_highlight(ctx)
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
return {
|
||||
"eandrju/cellular-automaton.nvim",
|
||||
cmd = "CellularAutomaton",
|
||||
keys = {
|
||||
{
|
||||
"<leader>mr",
|
||||
@@ -7,5 +8,4 @@ return {
|
||||
desc = "[M]ake it [R]ain",
|
||||
},
|
||||
},
|
||||
cmd = "CellularAutomaton",
|
||||
}
|
||||
|
||||
91
lua/plugins/colorful-menu.lua
Normal file
91
lua/plugins/colorful-menu.lua
Normal file
@@ -0,0 +1,91 @@
|
||||
return {
|
||||
"xzbdmw/colorful-menu.nvim",
|
||||
opts = {
|
||||
ls = {
|
||||
lua_ls = {
|
||||
-- Maybe you want to dim arguments a bit.
|
||||
arguments_hl = "@comment",
|
||||
},
|
||||
gopls = {
|
||||
-- By default, we render variable/function's type in the right most side,
|
||||
-- to make them not to crowd together with the original label.
|
||||
|
||||
-- when true:
|
||||
-- foo *Foo
|
||||
-- ast "go/ast"
|
||||
|
||||
-- when false:
|
||||
-- foo *Foo
|
||||
-- ast "go/ast"
|
||||
align_type_to_right = true,
|
||||
-- When true, label for field and variable will format like "foo: Foo"
|
||||
-- instead of go's original syntax "foo Foo". If align_type_to_right is
|
||||
-- true, this option has no effect.
|
||||
add_colon_before_type = true,
|
||||
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
|
||||
preserve_type_when_truncate = true,
|
||||
},
|
||||
-- for lsp_config or typescript-tools
|
||||
ts_ls = {
|
||||
-- false means do not include any extra info,
|
||||
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
|
||||
extra_info_hl = "@comment",
|
||||
},
|
||||
vtsls = {
|
||||
-- false means do not include any extra info,
|
||||
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
|
||||
extra_info_hl = "@comment",
|
||||
},
|
||||
["rust-analyzer"] = {
|
||||
-- Such as (as Iterator), (use std::io).
|
||||
extra_info_hl = "@comment",
|
||||
-- Similar to the same setting of gopls.
|
||||
align_type_to_right = true,
|
||||
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
|
||||
preserve_type_when_truncate = true,
|
||||
},
|
||||
clangd = {
|
||||
-- Such as "From <stdio.h>".
|
||||
extra_info_hl = "@comment",
|
||||
-- Similar to the same setting of gopls.
|
||||
align_type_to_right = true,
|
||||
-- the hl group of leading dot of "•std::filesystem::permissions(..)"
|
||||
import_dot_hl = "@comment",
|
||||
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
|
||||
preserve_type_when_truncate = true,
|
||||
},
|
||||
zls = {
|
||||
-- Similar to the same setting of gopls.
|
||||
align_type_to_right = true,
|
||||
},
|
||||
roslyn = {
|
||||
extra_info_hl = "@comment",
|
||||
},
|
||||
dartls = {
|
||||
extra_info_hl = "@comment",
|
||||
},
|
||||
-- The same applies to pyright/pylance
|
||||
basedpyright = {
|
||||
-- It is usually import path such as "os"
|
||||
extra_info_hl = "@comment",
|
||||
},
|
||||
-- If true, try to highlight "not supported" languages.
|
||||
fallback = true,
|
||||
-- this will be applied to label description for unsupport languages
|
||||
fallback_extra_info_hl = "@comment",
|
||||
},
|
||||
-- If the built-in logic fails to find a suitable highlight group for a label,
|
||||
-- this highlight is applied to the label.
|
||||
fallback_highlight = "@variable",
|
||||
-- If provided, the plugin truncates the final displayed text to
|
||||
-- this width (measured in display cells). Any highlights that extend
|
||||
-- beyond the truncation point are ignored. When set to a float
|
||||
-- between 0 and 1, it'll be treated as percentage of the width of
|
||||
-- the window: math.floor(max_width * vim.api.nvim_win_get_width(0))
|
||||
-- Default 60.
|
||||
max_width = 80,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("colorful-menu").setup(opts)
|
||||
end,
|
||||
}
|
||||
@@ -15,27 +15,28 @@ return {
|
||||
},
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
bash = { "shfmt" },
|
||||
c = { "clang-format" },
|
||||
cmake = { "cmake_format" },
|
||||
cpp = { "clang-format" },
|
||||
css = { "prettier" },
|
||||
scss = { "prettier" },
|
||||
python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" },
|
||||
go = { "goimports", "gofmt" },
|
||||
html = { "djlint", "rustywind" },
|
||||
htmldjango = { "djlint", "rustywind" },
|
||||
javascript = js,
|
||||
javascriptreact = js,
|
||||
json = { "jq" },
|
||||
lua = { "stylua" },
|
||||
markdown = { "cbfmt", "markdownlint", "markdown-toc" },
|
||||
python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" },
|
||||
rust = { "rustfmt", "leptosfmt", "yew-fmt" },
|
||||
scss = { "prettier" },
|
||||
sql = { "pg_format" },
|
||||
toml = { "taplo" },
|
||||
typescript = js,
|
||||
typescriptreact = js,
|
||||
markdown = { "cbfmt", "markdownlint", "markdown-toc" },
|
||||
vimwiki = { "cbfmt", "markdownlint", "markdown-toc" },
|
||||
json = { "jq" },
|
||||
c = { "clang-format" },
|
||||
toml = { "taplo" },
|
||||
cpp = { "clang-format" },
|
||||
cmake = { "cmake_format" },
|
||||
htmldjango = { "djlint", "rustywind" },
|
||||
html = { "djlint", "rustywind" },
|
||||
typst = { "typstyle" },
|
||||
rust = { "rustfmt", "leptosfmt", "yew-fmt" },
|
||||
sql = { "pg_format" },
|
||||
vimwiki = { "cbfmt", "markdownlint", "markdown-toc" },
|
||||
yaml = { "yamlfmt" },
|
||||
["_"] = { "trim_whitespace" },
|
||||
},
|
||||
|
||||
@@ -8,22 +8,26 @@ return {
|
||||
enabled = true,
|
||||
clear_in_insert_mode = false,
|
||||
download_remote_images = true,
|
||||
only_render_image_at_cursor = false,
|
||||
only_render_image_at_cursor = true,
|
||||
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
|
||||
},
|
||||
neorg = {
|
||||
enabled = true,
|
||||
only_render_image_at_cursor = true,
|
||||
filetypes = { "norg" },
|
||||
},
|
||||
typst = {
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
only_render_image_at_cursor = true,
|
||||
filetypes = { "typst" },
|
||||
},
|
||||
html = {
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
only_render_image_at_cursor = true,
|
||||
},
|
||||
css = {
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
only_render_image_at_cursor = true,
|
||||
},
|
||||
},
|
||||
max_width = nil,
|
||||
@@ -35,5 +39,26 @@ return {
|
||||
editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
|
||||
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
|
||||
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.avif" }, -- render image files as images when opened
|
||||
resolve_image_path = function(document_path, image_path, fallback)
|
||||
-- Define the absolute path to your Assets directory
|
||||
local assets_dir = vim.fn.expand("~/Obsidian/assets/img/")
|
||||
|
||||
-- Check if the image_path is already an absolute path
|
||||
if image_path:match("^/") then
|
||||
-- If it's an absolute path, leave it unchanged
|
||||
return image_path
|
||||
end
|
||||
|
||||
-- Construct the new image path by prepending the Assets directory
|
||||
local new_image_path = assets_dir .. "/" .. image_path
|
||||
|
||||
-- Check if the constructed path exists
|
||||
if vim.fn.filereadable(new_image_path) == 1 then
|
||||
return new_image_path
|
||||
else
|
||||
-- If the file doesn't exist in Assets, fallback to default behavior
|
||||
return fallback(document_path, image_path)
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ return {
|
||||
{
|
||||
"felpafel/inlay-hint.nvim",
|
||||
event = "LspAttach",
|
||||
version = "1.0.*",
|
||||
opts = {
|
||||
virt_text_pos = "eol",
|
||||
highlight_group = "comment",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"kiyoon/jupynium.nvim",
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
"rcarriga/nvim-notify", -- optional
|
||||
-- "stevearc/dressing.nvim", -- optional, UI for :JupyniumKernelSelect
|
||||
@@ -1,6 +1,6 @@
|
||||
return {
|
||||
"folke/lazydev.nvim",
|
||||
ft = "lua", -- only load on lua files
|
||||
ft = "lua",
|
||||
opts = {
|
||||
library = {
|
||||
-- See the configuration section for more details
|
||||
|
||||
@@ -132,7 +132,6 @@ return {
|
||||
"cssls",
|
||||
"emmet_language_server",
|
||||
"html",
|
||||
-- "jedi_language_server",
|
||||
"lua_ls",
|
||||
"tailwindcss",
|
||||
"texlab",
|
||||
@@ -317,8 +316,10 @@ return {
|
||||
tinymist = {
|
||||
offset_encoding = "utf-8",
|
||||
settings = {
|
||||
exportPdf = "onType",
|
||||
formatterMode = "typstyle",
|
||||
exportPdf = "onSave",
|
||||
outputPath = "$root/target/$dir/$name",
|
||||
semanticTokens = "disable",
|
||||
},
|
||||
},
|
||||
matlab_ls = {
|
||||
|
||||
@@ -2,7 +2,6 @@ return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"pnx/lualine-lsp-status",
|
||||
"arkav/lualine-lsp-progress",
|
||||
{ "letieu/harpoon-lualine", dependencies = {
|
||||
"ThePrimeagen/harpoon",
|
||||
@@ -48,7 +47,7 @@ return {
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch" },
|
||||
lualine_c = { "filename", "diff", "harpoon2", "lsp-status", "lsp_progress" },
|
||||
lualine_c = { "filename", "diff", "harpoon2", "lsp_progress" },
|
||||
lualine_x = { "diagnostics", "encoding", "filetype", "filesize" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
@@ -64,6 +63,6 @@ return {
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
extentions = { "fzf", "fugitive", "lazy", "mason", "man", "oil", "nvim-dap-ui", "trouble" },
|
||||
extentions = {},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"-",
|
||||
|
||||
@@ -4,21 +4,5 @@ return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
enabled = false,
|
||||
keys = {
|
||||
{
|
||||
"<leader>Ot",
|
||||
function()
|
||||
require("otter").open()
|
||||
end,
|
||||
desc = "Open Otter",
|
||||
},
|
||||
{
|
||||
"<leader>Oc",
|
||||
function()
|
||||
require("otter").close()
|
||||
end,
|
||||
desc = "Close Otter",
|
||||
},
|
||||
},
|
||||
opts = {},
|
||||
}
|
||||
|
||||
@@ -2,39 +2,45 @@ return {
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = {
|
||||
animate = { enabled = false },
|
||||
bigfile = { enabled = true },
|
||||
bufdelete = { enabled = true },
|
||||
dashboard = { enabled = false },
|
||||
debug = { enabled = false },
|
||||
dim = { enabled = true },
|
||||
explorer = { enabled = false },
|
||||
git = { enabled = false },
|
||||
gitbrowse = { enabled = false },
|
||||
image = { enabled = false },
|
||||
indent = {
|
||||
enabled = true,
|
||||
opts = function()
|
||||
-- Toggle the profiler
|
||||
Snacks.toggle.profiler():map("<leader>Pp")
|
||||
-- Toggle the profiler highlights
|
||||
Snacks.toggle.profiler_highlights():map("<leader>Ph")
|
||||
return {
|
||||
animate = { enabled = false },
|
||||
},
|
||||
input = { enabled = false },
|
||||
layout = { enabled = false },
|
||||
lazygit = { enabled = false },
|
||||
notifier = { enabled = false },
|
||||
picker = { enabled = false }, -- TODO: might replace telescope
|
||||
profiler = { enabled = false },
|
||||
quickfile = { enabled = true, exclude = { "latex" } },
|
||||
rename = { enabled = true },
|
||||
scope = { enabled = false },
|
||||
scratch = { enabled = false },
|
||||
scroll = { enabled = false },
|
||||
statuscolumn = { enabled = false },
|
||||
terminal = { enabled = false },
|
||||
toggle = { enabled = false },
|
||||
win = { enabled = false },
|
||||
words = { enabled = true },
|
||||
zen = { enabled = false },
|
||||
},
|
||||
bigfile = { enabled = true },
|
||||
bufdelete = { enabled = true },
|
||||
dashboard = { enabled = false },
|
||||
debug = { enabled = false },
|
||||
dim = { enabled = true },
|
||||
explorer = { enabled = false },
|
||||
git = { enabled = false },
|
||||
gitbrowse = { enabled = false },
|
||||
image = { enabled = false },
|
||||
indent = {
|
||||
enabled = true,
|
||||
animate = { enabled = false },
|
||||
},
|
||||
input = { enabled = false },
|
||||
layout = { enabled = false },
|
||||
lazygit = { enabled = false },
|
||||
notifier = { enabled = false },
|
||||
picker = { enabled = false }, -- TODO: might replace telescope
|
||||
profiler = { enabled = false },
|
||||
quickfile = { enabled = true, exclude = { "latex" } },
|
||||
rename = { enabled = true },
|
||||
scope = { enabled = false },
|
||||
scratch = { enabled = false },
|
||||
scroll = { enabled = false },
|
||||
statuscolumn = { enabled = false },
|
||||
terminal = { enabled = false },
|
||||
toggle = { enabled = false },
|
||||
win = { enabled = false },
|
||||
words = { enabled = true },
|
||||
zen = { enabled = false },
|
||||
}
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>zz",
|
||||
@@ -55,7 +61,14 @@ return {
|
||||
function()
|
||||
Snacks.notifier.show_history()
|
||||
end,
|
||||
desc = "Notification History",
|
||||
desc = "History",
|
||||
},
|
||||
{
|
||||
"<leader>Ps",
|
||||
function()
|
||||
Snacks.profiler.scratch()
|
||||
end,
|
||||
desc = "Profiler Scratch Bufer",
|
||||
},
|
||||
},
|
||||
init = function()
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"dstein64/vim-startuptime",
|
||||
evnet = "VeryLazy",
|
||||
cmd = { "StartupTime" },
|
||||
}
|
||||
@@ -13,7 +13,7 @@ return {
|
||||
{ "crispgm/telescope-heading.nvim" },
|
||||
{ "benfowler/telescope-luasnip.nvim" },
|
||||
{ "paopaol/telescope-git-diffs.nvim" },
|
||||
{ "ThePrimeagen/harpoon", branch = "harpoon2" },
|
||||
{ "ThePrimeagen/harpoon", branch = "harpoon2" },
|
||||
{ "piersolenski/telescope-import.nvim" },
|
||||
{ "nvim-telescope/telescope-frecency.nvim" },
|
||||
},
|
||||
@@ -37,20 +37,20 @@ return {
|
||||
end,
|
||||
desc = "Current Buffer Fuzzy",
|
||||
},
|
||||
{ "<leader>ps", require("telescope.builtin").live_grep, desc = "Live Grep" },
|
||||
{ "<leader>pb", require("telescope.builtin").buffers, desc = "Find [B]uffers" },
|
||||
{ "<leader>pws", require("telescope.builtin").grep_string, desc = "[S]tring under the cursor" },
|
||||
{ "<leader>pe", require("telescope.builtin").symbols, desc = "[E]moji" },
|
||||
{ "<leader>pd", require("telescope.builtin").diagnostic, desc = "[D]iagnostics" },
|
||||
{ "<leader>pB", require("telescope.builtin").git_branches, desc = "Checkout [B]ranch" },
|
||||
{ "<leader>ph", require("telescope.builtin").help_tags, desc = "[H]elp" },
|
||||
{ "<leader>pM", require("telescope.builtin").man_pages, desc = "[M]an Pages" },
|
||||
{ "<leader>pr", require("telescope.builtin").oldfiles, desc = "Open [R]ecent Files" },
|
||||
{ "<leader>pR", require("telescope.builtin").registers, desc = "[R]egisters" },
|
||||
{ "<leader>pg", require("telescope.builtin").git_files, desc = "[G]it Files" },
|
||||
{ "<leader>pk", require("telescope.builtin").keymaps, desc = "[K]eymaps" },
|
||||
{ "<leader>pC", require("telescope.builtin").commands, desc = "[C]ommands" },
|
||||
{ "<leader>pt", vim.cmd.TodoTelescope, desc = "[T]odo" },
|
||||
{ "<leader>ps", require("telescope.builtin").live_grep, desc = "Live Grep" },
|
||||
{ "<leader>pb", require("telescope.builtin").buffers, desc = "Find [B]uffers" },
|
||||
{ "<leader>pws", require("telescope.builtin").grep_string, desc = "[S]tring under the cursor" },
|
||||
{ "<leader>pe", require("telescope.builtin").symbols, desc = "[E]moji" },
|
||||
{ "<leader>pd", require("telescope.builtin").diagnostic, desc = "[D]iagnostics" },
|
||||
{ "<leader>pB", require("telescope.builtin").git_branches, desc = "Checkout [B]ranch" },
|
||||
{ "<leader>ph", require("telescope.builtin").help_tags, desc = "[H]elp" },
|
||||
{ "<leader>pM", require("telescope.builtin").man_pages, desc = "[M]an Pages" },
|
||||
{ "<leader>pr", require("telescope.builtin").oldfiles, desc = "Open [R]ecent Files" },
|
||||
{ "<leader>pR", require("telescope.builtin").registers, desc = "[R]egisters" },
|
||||
{ "<leader>pg", require("telescope.builtin").git_files, desc = "[G]it Files" },
|
||||
{ "<leader>pk", require("telescope.builtin").keymaps, desc = "[K]eymaps" },
|
||||
{ "<leader>pC", require("telescope.builtin").commands, desc = "[C]ommands" },
|
||||
{ "<leader>pt", vim.cmd.TodoTelescope, desc = "[T]odo" },
|
||||
{
|
||||
"<leader>pm",
|
||||
function()
|
||||
@@ -145,7 +145,7 @@ return {
|
||||
},
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true, -- false will only do exact matching
|
||||
fuzzy = true, -- false will only do exact matching
|
||||
override_generic_sorter = true, -- override the generic sorter
|
||||
override_file_sorter = true, -- override the file sorter
|
||||
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
||||
@@ -275,12 +275,12 @@ return {
|
||||
|
||||
pcall(telescope.load_extension, "fzf")
|
||||
pcall(telescope.load_extension, "media_files") -- Telescope media_files
|
||||
pcall(telescope.load_extension, "lazy") -- Telescope lazy
|
||||
pcall(telescope.load_extension, "lazy") -- Telescope lazy
|
||||
pcall(telescope.load_extension, "software-licenses") -- Telescope software-licenses list
|
||||
pcall(telescope.load_extension, "heading") -- Telescope heading
|
||||
pcall(telescope.load_extension, "luasnip") -- Telescope luasnip
|
||||
pcall(telescope.load_extension, "git_diffs") -- Telescope git_diffs diff_commits
|
||||
pcall(telescope.load_extension, "bibtex") -- Telescope bibtex
|
||||
pcall(telescope.load_extension, "heading") -- Telescope heading
|
||||
pcall(telescope.load_extension, "luasnip") -- Telescope luasnip
|
||||
pcall(telescope.load_extension, "git_diffs") -- Telescope git_diffs diff_commits
|
||||
pcall(telescope.load_extension, "bibtex") -- Telescope bibtex
|
||||
pcall(telescope.load_extension, "harpoon")
|
||||
pcall(telescope.load_extension, "frecency")
|
||||
end,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
return {
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
cmd = "Trouble",
|
||||
keys = {
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
return {
|
||||
"jellydn/typecheck.nvim",
|
||||
dependencies = { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" } },
|
||||
dependencies = { "folke/trouble.nvim" },
|
||||
ft = { "javascript", "javascriptreact", "json", "jsonc", "typescript", "typescriptreact" },
|
||||
opts = {
|
||||
debug = true,
|
||||
|
||||
@@ -20,7 +20,7 @@ return {
|
||||
end,
|
||||
opts = {
|
||||
-- Setting this true will enable printing debug information with print()
|
||||
debug = true,
|
||||
debug = false,
|
||||
|
||||
-- Custom format string to open the output link provided with %s
|
||||
-- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview'
|
||||
@@ -40,7 +40,7 @@ return {
|
||||
-- required.
|
||||
dependencies_bin = {
|
||||
-- if you are using tinymist, just set ['typst-preview'] = "tinymist".
|
||||
["typst-preview"] = "tinymist",
|
||||
["typst-preview"] = nil,
|
||||
["websocat"] = nil,
|
||||
},
|
||||
-- A list of extra arguments (or nil) to be passed to previewer.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
return {
|
||||
"ThePrimeagen/vim-be-good",
|
||||
lazy = true,
|
||||
cmd = { "VimBeGood" },
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
return {
|
||||
"lervag/vimtex",
|
||||
enabled = false,
|
||||
ft = "tex",
|
||||
keys = {
|
||||
{ "<leader>Tb", vim.cmd.VimtexCompile, desc = "[B]uild", ft = "tex" },
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = "nvim-tree/nvim-web-devicons",
|
||||
dependencies = {
|
||||
"echasnovski/mini.icons",
|
||||
},
|
||||
version = "*",
|
||||
enabled = true,
|
||||
opts = {
|
||||
preset = "modern",
|
||||
sort = { "alphanum", "local", "order", "group", "mod", "lower", "icase" },
|
||||
@@ -19,11 +20,11 @@ return {
|
||||
{
|
||||
mode = "v",
|
||||
"<leader>s",
|
||||
":s///gI<Left><Left><Left>",
|
||||
":s///gI<Left><Left><Left><Left>",
|
||||
desc = "[s]ubstitute word",
|
||||
},
|
||||
{
|
||||
{ "<leader>C", vim.cmd.bdelete, desc = "[C]lose Buffer" },
|
||||
{ "<leader>c", vim.cmd.bdelete, desc = "[C]lose Buffer" },
|
||||
{
|
||||
"<leader>X",
|
||||
function()
|
||||
@@ -31,7 +32,6 @@ return {
|
||||
end,
|
||||
desc = "Make E[x]ecutable",
|
||||
},
|
||||
{ "<leader>c", group = "[C]url", { "<leader>cC", group = "[C]SV" } },
|
||||
{ "<leader>x", group = "Trouble" },
|
||||
{ "<leader>g", group = "[G]it" },
|
||||
{ "<leader>q", group = "Persistence" },
|
||||
@@ -44,6 +44,10 @@ return {
|
||||
{ "<leader>n", group = "Gitpat" },
|
||||
{ "<leader>m", group = "[M]isc" },
|
||||
{ "<leader>T", group = "Vim[T]ex" },
|
||||
{ "<leader>N", group = "[N]otifications" },
|
||||
{ "<leader>O", group = "[O]bsidian" },
|
||||
{ "<leader>s", group = "Neogen" },
|
||||
{ "<leader>t", group = "Neo[t]est" },
|
||||
{
|
||||
"<leader>d",
|
||||
group = "[D]AP",
|
||||
|
||||
Reference in New Issue
Block a user