Compare commits

...

6 Commits

29 changed files with 364 additions and 367 deletions

View File

@@ -19,7 +19,7 @@ repos:
args: [--autofix, --no-sort-keys] args: [--autofix, --no-sort-keys]
- repo: https://github.com/igorshubovych/markdownlint-cli - repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0 rev: v0.42.0
hooks: hooks:
- id: markdownlint - id: markdownlint
args: [-c, .markdownlint.yaml, --fix] args: [-c, .markdownlint.yaml, --fix]
@@ -45,6 +45,6 @@ repos:
- id: shfmt - id: shfmt
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.7.1 rev: v1.7.2
hooks: hooks:
- id: actionlint - id: actionlint

View File

@@ -1,18 +1,17 @@
asdf-plugin-manager 1.3.1 asdf-plugin-manager 1.4.0
nodejs 22.8.0 nodejs 22.9.0
golang 1.23.1 golang 1.23.1
python 3.12.6 python 3.12.6
ruby 3.3.4 ruby 3.3.4
rust 1.81.0 rust 1.81.0
direnv 2.34.0 direnv 2.34.0
eza 0.19.3
fd 10.2.0 fd 10.2.0
1password-cli 2.30.0 1password-cli 2.30.0
age 1.2.0 age 1.2.0
bottom 0.10.2 bottom 0.10.2
dotenv-linter 3.3.0 dotenv-linter 3.3.0
editorconfig-checker 2.8.0 editorconfig-checker 2.8.0
github-cli 2.56.0 github-cli 2.57.0
hadolint 2.12.0 hadolint 2.12.0
kubectl 1.31.1 kubectl 1.31.1
pipx 1.7.1 pipx 1.7.1
@@ -20,12 +19,11 @@ pre-commit 3.8.0
ripgrep 14.1.1 ripgrep 14.1.1
shellcheck 0.10.0 shellcheck 0.10.0
shfmt 3.9.0 shfmt 3.9.0
terragrunt 0.67.5 terragrunt 0.67.10
tf-summarize 0.3.10 tf-summarize 0.3.10
yamllint 1.35.1 yamllint 1.35.1
yq 4.44.3 yq 4.44.3
bats 1.11.0 bats 1.11.0
gitleaks 8.18.4 gitleaks 8.18.4
delta 0.18.1 delta 0.18.1
lazygit 0.44.0
sops 3.9.0 sops 3.9.0

View File

@@ -6,7 +6,7 @@
export DOTFILES="$HOME/.dotfiles" export DOTFILES="$HOME/.dotfiles"
LOCAL_SHARE="$HOME/.local/share" LOCAL_SHARE="$HOME/.local/share"
export PATH="$HOME/.local/bin:$DOTFILES/local/bin:$LOCAL_SHARE/nvim-kickstart/mason/bin:$LOCAL_SHARE/bob/nvim-bin:$LOCAL_SHARE/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH" export PATH="$HOME/.local/bin:$DOTFILES/local/bin:$LOCAL_SHARE/nvim/mason/bin:$LOCAL_SHARE/bob/nvim-bin:$LOCAL_SHARE/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
export SHARED_SCRIPTS_SOURCED=0 export SHARED_SCRIPTS_SOURCED=0
source "$DOTFILES/config/shared.sh" source "$DOTFILES/config/shared.sh"

View File

@@ -19,3 +19,5 @@ bob-nvim
// bottom, btm - A cross-platform graphical process/system monitor with // bottom, btm - A cross-platform graphical process/system monitor with
// a customizable interface and a multitude of features. // a customizable interface and a multitude of features.
bottom bottom
// A modern alternative to ls
eza

View File

@@ -17,3 +17,5 @@ github.com/charmbracelet/glow@v1.5.1
github.com/rhysd/actionlint/cmd/actionlint@v1.7.1 github.com/rhysd/actionlint/cmd/actionlint@v1.7.1
// Cleans up your $HOME from those pesky dotfiles // Cleans up your $HOME from those pesky dotfiles
github.com/doron-cohen/antidot@v0.6.3 github.com/doron-cohen/antidot@v0.6.3
// FZF is a general-purpose command-line fuzzy finder.
github.com/junegunn/fzf@latest

View File

@@ -5,7 +5,6 @@ bottom https://github.com/carbonteq/asdf-btm.git
direnv https://github.com/asdf-community/asdf-direnv.git a2219c2 direnv https://github.com/asdf-community/asdf-direnv.git a2219c2
dotenv-linter https://github.com/wesleimp/asdf-dotenv-linter.git 1369f53 dotenv-linter https://github.com/wesleimp/asdf-dotenv-linter.git 1369f53
editorconfig-checker https://github.com/gabitchov/asdf-editorconfig-checker.git 585c1d5 editorconfig-checker https://github.com/gabitchov/asdf-editorconfig-checker.git 585c1d5
eza https://github.com/lwiechec/asdf-eza.git eee3d59
fd https://gitlab.com/wt0f/asdf-fd.git 17d56e0 fd https://gitlab.com/wt0f/asdf-fd.git 17d56e0
github-cli https://github.com/bartlomiejdanek/asdf-github-cli.git e0605b7 github-cli https://github.com/bartlomiejdanek/asdf-github-cli.git e0605b7
golang https://github.com/asdf-community/asdf-golang.git 0e86b1d golang https://github.com/asdf-community/asdf-golang.git 0e86b1d

View File

@@ -18,17 +18,29 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require 'options' -- Add ~/.local/bin to the PATH
require 'keymaps' vim.fn.setenv('PATH', vim.fn.expand '$HOME/.local/bin' .. ':' .. vim.fn.expand '$PATH')
require('lazy').setup { require 'options'
require('lazy').setup('plugins', {
checker = { checker = {
-- Automatically check for updates -- Automatically check for updates
enabled = true, enabled = true,
nofity = false, nofity = false,
}, },
spec = { change_detection = {
-- Import plugins from `lua/plugins` directory notify = false,
{ import = 'plugins' },
}, },
} })
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})

View File

@@ -1,72 +0,0 @@
vim.api.nvim_set_keymap('i', 'jj', '<Esc>', { noremap = false })
-- buffers
vim.api.nvim_set_keymap('n', '<leader>bk', ':blast<enter>', { desc = 'Buffer: Last', noremap = false })
vim.api.nvim_set_keymap('n', '<leader>bj', ':bfirst<enter>', { desc = 'Buffer: First', noremap = false })
vim.api.nvim_set_keymap('n', '<leader>bh', ':bprev<enter>', { desc = 'Buffer: Prev', noremap = false })
vim.api.nvim_set_keymap('n', '<leader>bl', ':bnext<enter>', { desc = 'Buffer: Next', noremap = false })
vim.api.nvim_set_keymap('n', '<leader>bd', ':Bdelete<enter>', { desc = 'Buffer: Delete', noremap = false })
vim.api.nvim_set_keymap('n', '<leader>bw', ':Bwipeout<enter>', { desc = 'Buffer: Wipeout', noremap = false })
-- files
vim.api.nvim_set_keymap('n', 'QQ', ':q!<enter>', { desc = 'Quickly Quit', noremap = false })
vim.api.nvim_set_keymap('n', 'WW', ':w!<enter>', { desc = 'Force write', noremap = false })
vim.api.nvim_set_keymap('n', 'E', '$', { noremap = false })
vim.api.nvim_set_keymap('n', 'B', '^', { noremap = false })
vim.api.nvim_set_keymap('n', 'tT', ':TransparentToggle<CR>', { desc = 'Toggle Transparency', noremap = true })
vim.api.nvim_set_keymap('n', 'ss', ':noh<CR>', { noremap = true })
-- splits
vim.api.nvim_set_keymap('n', '<C-W>,', ':vertical resize -10<CR>', { desc = 'V Resize -', noremap = true })
vim.api.nvim_set_keymap('n', '<C-W>.', ':vertical resize +10<CR>', { desc = 'V Resize +', noremap = true })
-- Quicker close split
vim.keymap.set('n', '<leader>qf', ':q<CR>', { desc = 'Quicker close split', silent = true, noremap = true })
-- Keymaps for better default experience
-- See `:help vim.keymap.set()`
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
-- Remap for dealing with word wrap
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
vim.keymap.set('n', '<leader>xe', '<cmd>GoIfErr<cr>', { desc = 'Go If Error', silent = true, noremap = true })
-- TIP: Disable arrow keys in normal mode
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> to switch between windows
--
-- See `:help wincmd` for a list of all window commands
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- Old habits
vim.keymap.set('n', '<C-s>', '<cmd>w<CR>', { desc = 'Save file' })
vim.keymap.set('n', '<leader>qq', '<cmd>wq!<CR>', { desc = '[qq] Quickly Quit' })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
-- is not what someone will guess without a bit more experience.
--
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
-- or just use <C-\><C-n> to exit terminal mode
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})

View File

@@ -81,5 +81,11 @@ vim.o.termguicolors = true
-- Set spell checking -- Set spell checking
vim.o.spell = true vim.o.spell = true
vim.o.spelllang = 'en_us'
vim.g.loaded_perl_provider = 0 vim.g.loaded_perl_provider = 0
-- ── Deal with word wrap ───────────────────────────────────────────────────────
local m = vim.api.nvim_set_keymap
m('n', 'k', "v:count == 0 ? 'gk' : 'k'", { desc = 'Move up', noremap = true, expr = true })
m('n', 'j', "v:count == 0 ? 'gj' : 'j'", { desc = 'Move down', noremap = true, expr = true })

View File

@@ -31,7 +31,7 @@ return {
help = true, help = true,
}, },
}, },
} },
}, },
config = function() config = function()
require('copilot_cmp').setup() require('copilot_cmp').setup()
@@ -51,7 +51,7 @@ return {
min_width = 40, min_width = 40,
max_width = 100, max_width = 100,
symbol_map = { symbol_map = {
Copilot = '' Copilot = '',
}, },
}, },
}, },

View File

@@ -8,7 +8,7 @@ return {
keys = { keys = {
-- Stolen from https://github.com/erikw/dotfiles/blob/d68d6274d67ac47afa20b9a0b9f3b0fa54bcdaf3/.config/nvim/lua/plugins.lua -- Stolen from https://github.com/erikw/dotfiles/blob/d68d6274d67ac47afa20b9a0b9f3b0fa54bcdaf3/.config/nvim/lua/plugins.lua
-- Search for files in given path. -- Search for files in given path.
{ '<Leader><space>', ':FZF<space>', desc = 'FZF: search for files in given path.' }, { '<Leader>zf', ':FZF<space>', desc = 'FZF: search for files in given path.' },
-- Sublime-like shortcut 'go to file' ctrl+p. -- Sublime-like shortcut 'go to file' ctrl+p.
{ '<C-p>', ':Files<CR>', desc = 'FZF: search for files starting at current directory.' }, { '<C-p>', ':Files<CR>', desc = 'FZF: search for files starting at current directory.' },
{ '<Leader>zc', ':Commands<CR>', desc = 'FZF: search commands.' }, { '<Leader>zc', ':Commands<CR>', desc = 'FZF: search commands.' },

View File

@@ -3,6 +3,7 @@ return {
-- https://github.com/lewis6991/gitsigns.nvim -- https://github.com/lewis6991/gitsigns.nvim
{ {
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
lazy = false,
config = function() config = function()
require('gitsigns').setup { require('gitsigns').setup {
signs = { signs = {

View File

@@ -6,9 +6,10 @@ return {
{ 'nvim-telescope/telescope.nvim' }, { 'nvim-telescope/telescope.nvim' },
}, },
keys = { keys = {
{ 'n', 'gp', group = 'Goto Preview' },
{ 'n', 'gpd', '<cmd>lua require("goto-preview").goto_preview_definition()<CR>' }, { 'n', 'gpd', '<cmd>lua require("goto-preview").goto_preview_definition()<CR>' },
{ 'n', 'gpi', '<cmd>lua require("goto-preview").goto_preview_implementation()<CR>' }, { 'n', 'gpi', '<cmd>lua require("goto-preview").goto_preview_implementation()<CR>' },
{ 'n', 'gP', '<cmd>lua require("goto-preview").close_all_windows()<CR>' }, { 'n', 'gpP', '<cmd>lua require("goto-preview").close_all_windows()<CR>' },
}, },
config = function() config = function()
require('goto-preview').setup { require('goto-preview').setup {

View File

@@ -15,7 +15,7 @@ return {
vim.keymap.set('n', '<leader>ht', function() vim.keymap.set('n', '<leader>ht', function()
harpoon.ui:toggle_quick_menu(harpoon:list()) harpoon.ui:toggle_quick_menu(harpoon:list())
end) end, { desc = 'Open Harpoon Quick menu' })
-- basic telescope configuration -- basic telescope configuration
local conf = require('telescope.config').values local conf = require('telescope.config').values
@@ -37,27 +37,27 @@ return {
:find() :find()
end end
vim.keymap.set('n', '<leader>xa', function() vim.keymap.set('n', '<leader>hw', function()
toggle_telescope(harpoon:list()) toggle_telescope(harpoon:list())
end, { desc = 'Open harpoon window' }) end, { desc = 'Open harpoon window with telescope' })
end, end,
keys = { keys = {
{ {
'<leader>xa', '<leader>ha',
function() function()
require('harpoon'):list():add() require('harpoon'):list():add()
end, end,
desc = 'harpoon file', desc = 'harpoon file',
}, },
{ {
'<leader>xN', '<leader>hp',
function() function()
require('harpoon'):list():prev() require('harpoon'):list():prev()
end, end,
desc = 'harpoon to previous file', desc = 'harpoon to previous file',
}, },
{ {
'<leader>xn', '<leader>hn',
function() function()
require('harpoon'):list():next() require('harpoon'):list():next()
end, end,

View File

@@ -1,16 +1,29 @@
return { return {
-- vscode-like pictograms for neovim lsp completion items -- A better annotation generator.
-- https://github.com/onsails/lspkind-nvim -- Supports multiple languages and annotation conventions.
{ 'onsails/lspkind.nvim' }, -- https://github.com/danymat/neogen
{
'danymat/neogen',
version = '*',
keys = {
{
'<leader>cg',
'<cmd>lua require("neogen").generate()<CR>',
desc = 'Generate annotations',
},
},
config = function()
require('neogen').setup {
enabled = true,
snippet_engine = 'luasnip',
}
end,
},
-- Rethinking Vim as a tool for writing -- Rethinking Vim as a tool for writing
-- https://github.com/preservim/vim-pencil -- https://github.com/preservim/vim-pencil
{ 'preservim/vim-pencil' }, { 'preservim/vim-pencil' },
-- obsession.vim: continuously updated session files
-- https://github.com/tpope/vim-obsession
{ 'tpope/vim-obsession' },
-- surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease -- surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease
-- https://github.com/tpope/vim-surround -- https://github.com/tpope/vim-surround
{ 'tpope/vim-surround' }, { 'tpope/vim-surround' },
@@ -25,11 +38,6 @@ return {
end, end,
}, },
-- LSP Configuration & Plugins
-- Meta type definitions for the Lua platform Luvit.
-- https://github.com/Bilal2453/luvit-meta
{ 'Bilal2453/luvit-meta', lazy = true },
-- Indent guides for Neovim -- Indent guides for Neovim
-- https://github.com/lukas-reineke/indent-blankline.nvim -- https://github.com/lukas-reineke/indent-blankline.nvim
{ {

View File

@@ -1,65 +1,39 @@
-- Quickstart configs for Nvim LSP -- Quickstart configs for Nvim LSP
-- https://github.com/neovim/nvim-lspconfig -- https://github.com/neovim/nvim-lspconfig
return { return {
-- Neovim plugin to manage global and project-local settings
-- Should be included before LSP Config
-- https://github.com/folke/neoconf.nvim
{
'folke/neoconf.nvim',
keys = {
{ '<leader>?c', '<cmd>Neoconf<CR>', desc = 'Neoconf: Open' },
{ '<leader>?g', '<cmd>Neoconf global<CR>', desc = 'Neoconf: Global' },
{ '<leader>?l', '<cmd>Neoconf local<CR>', desc = 'Neoconf: Local' },
{ '<leader>?m', '<cmd>Neoconf lsp<CR>', desc = 'Neoconf: Show merged LSP config' },
{ '<leader>?s', '<cmd>Neoconf show<CR>', desc = 'Neoconf: Show merged config' },
},
config = function()
require('neoconf').setup()
end,
},
{ {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
lazy = false,
dependencies = { dependencies = {
-- Neovim plugin to manage global and project-local settings
-- Should be included before LSP Config
-- https://github.com/folke/neoconf.nvim
{
'folke/neoconf.nvim',
lazy = false,
keys = {
{ '<leader>?c', '<cmd>Neoconf<CR>', desc = 'Neoconf: Open' },
{ '<leader>?g', '<cmd>Neoconf global<CR>', desc = 'Neoconf: Global' },
{ '<leader>?l', '<cmd>Neoconf local<CR>', desc = 'Neoconf: Local' },
{ '<leader>?m', '<cmd>Neoconf lsp<CR>', desc = 'Neoconf: Show merged LSP config' },
{ '<leader>?s', '<cmd>Neoconf show<CR>', desc = 'Neoconf: Show merged config' },
},
config = function()
require('neoconf').setup()
end,
},
-- Automatically install LSPs to stdpath for neovim -- Automatically install LSPs to stdpath for neovim
'williamboman/mason.nvim', {
'williamboman/mason.nvim',
lazy = false,
run = ':call MasonUpdate',
},
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim',
-- Useful status updates for LSP
{
'j-hui/fidget.nvim',
opts = {
notification = {
window = {
winblend = 50,
align = 'top',
},
},
},
},
'b0o/schemastore.nvim', 'b0o/schemastore.nvim',
{ -- vscode-like pictograms for neovim lsp completion items
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins -- https://github.com/onsails/lspkind-nvim
-- used for completion, annotations and signatures of Neovim apis { 'onsails/lspkind.nvim' },
'folke/lazydev.nvim',
dependencies = {
-- `wezterm-types` provides types for the Wezterm terminal
{
'justinsgithub/wezterm-types',
as = 'wezterm',
},
},
ft = 'lua',
opts = {
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
-- Load wezterm types when the `wezterm` word is found
{ path = 'wezterm-types', mods = { 'wezterm' } },
},
},
},
'folke/neoconf.nvim',
}, },
keys = { keys = {
{ '<leader>do', '<cmd>lua vim.diagnostic.open_float()<CR>', desc = 'Diagnostic: Open float' }, { '<leader>do', '<cmd>lua vim.diagnostic.open_float()<CR>', desc = 'Diagnostic: Open float' },
@@ -215,7 +189,7 @@ return {
end end
-- Turn on lsp status information -- Turn on lsp status information
require('fidget').setup() -- require('fidget').setup()
-- Example custom configuration for lua -- Example custom configuration for lua
-- --

View File

@@ -66,19 +66,17 @@ return {
local wk = require 'which-key' local wk = require 'which-key'
wk.add { wk.add {
-- { '<leader><space>', b.buffers, desc = '[ ] Find existing buffers' }, { '<leader><space>', b.buffers, desc = '[ ] Find existing buffers' },
{ '<leader>gR', "<cmd>lua require('telescope').extensions.git_worktree.create_git_worktree()<CR>", desc = 'Create Git worktree' }, { '<leader><tab>', "<Cmd>lua require('telescope.builtin').commands()<CR>", desc = 'Telescope: Commands' },
{ '<leader>gr', "<cmd>lua require('telescope').extensions.git_worktree.git_worktrees()<CR>", desc = 'Git worktrees' }, { '<leader>sS', b.git_status, desc = 'Git Status' },
{ '<leader>sS', b.git_status, desc = '' }, { '<leader>sd', b.diagnostics, desc = 'Search Diagnostics' },
{ '<leader>sd', b.diagnostics, desc = '[S]earch [D]iagnostics' }, { '<leader>sf', b.find_files, desc = 'Search Files' },
{ '<leader>sf', b.find_files, desc = '[S]earch [F]iles' }, { '<leader>sg', b.live_grep, desc = 'Search by Grep' },
{ '<leader>sg', b.live_grep, desc = '[S]earch by [G]rep' },
{ '<leader>sm', ':Telescope harpoon marks<CR>', desc = 'Harpoon Marks' }, { '<leader>sm', ':Telescope harpoon marks<CR>', desc = 'Harpoon Marks' },
{ '<leader>sn', "<cmd>lua require('telescope').extensions.notify.notify()<CR>", desc = 'Notify' }, { '<leader>sn', "<cmd>lua require('telescope').extensions.notify.notify()<CR>", desc = 'Notify' },
{ '<leader>so', b.oldfiles, desc = '[?] Find recently opened files' }, { '<leader>so', b.oldfiles, desc = 'Find recently Opened files' },
{ '<leader>sw', b.grep_string, desc = '[S]earch current [W]ord' },
{ '<leader>st', ':TodoTelescope<CR>', desc = 'Telescope: Todo' }, { '<leader>st', ':TodoTelescope<CR>', desc = 'Telescope: Todo' },
{ '<leader><tab>', "<Cmd>lua require('telescope.builtin').commands()<CR>", desc = 'Telescope: Commands' }, { '<leader>sw', b.grep_string, desc = 'Search current Word' },
} }
vim.keymap.set('n', '<leader>/', function() vim.keymap.set('n', '<leader>/', function()

View File

@@ -10,6 +10,10 @@ return {
}, },
config = function() config = function()
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
auto_install = true,
ignore_install = {},
sync_install = true,
modules = {},
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { ensure_installed = {
@@ -95,10 +99,10 @@ return {
swap = { swap = {
enable = true, enable = true,
swap_next = { swap_next = {
['<leader>a'] = '@parameter.inner', ['<leader>cn'] = '@parameter.inner',
}, },
swap_previous = { swap_previous = {
['<leader>A'] = '@parameter.inner', ['<leader>cP'] = '@parameter.inner',
}, },
}, },
}, },

View File

@@ -3,12 +3,12 @@ return {
lazy = false, lazy = false,
dependencies = 'nvim-tree/nvim-web-devicons', dependencies = 'nvim-tree/nvim-web-devicons',
keys = { keys = {
{ '<leader>xx', '<cmd>TroubleToggle<cr>', desc = 'Toggle Trouble' }, { '<leader>xx', '<cmd>Trouble<cr>', desc = 'Toggle Trouble' },
{ '<leader>xw', '<cmd>TroubleToggle workspace_diagnostics<cr>', desc = 'Toggle Workspace Diagnostics' }, { '<leader>xw', '<cmd>Trouble workspace_diagnostics<cr>', desc = 'Toggle Workspace Diagnostics' },
{ '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>', desc = 'Toggle Document Diagnostics' }, { '<leader>xd', '<cmd>Trouble document_diagnostics<cr>', desc = 'Toggle Document Diagnostics' },
{ '<leader>xl', '<cmd>TroubleToggle loclist<cr>', desc = 'Toggle Loclist' }, { '<leader>xl', '<cmd>Trouble loclist<cr>', desc = 'Toggle Loclist' },
{ '<leader>xq', '<cmd>TroubleToggle quickfix<cr>', desc = 'Toggle Quickfix' }, { '<leader>xq', '<cmd>Trouble quickfix<cr>', desc = 'Toggle Quickfix' },
{ 'gR', '<cmd>TroubleToggle lsp_references<cr>', desc = 'Toggle LSP References' }, { 'gR', '<cmd>Trouble lsp_references<cr>', desc = 'Toggle LSP References' },
}, },
config = function() config = function()
require('trouble').setup { require('trouble').setup {

View File

@@ -1,3 +1,22 @@
-- Not UFO in the sky, but an ultra fold in Neovim.
-- https://github.com/kevinhwang91/nvim-ufo/
-- fold_virt_text_handler
-- This handler is called when the fold text is too long to fit in the window.
-- It is expected to truncate the text and return a new list of virtual text.
-- The handler is called with the following arguments:
-- virtText: The current virtual text list.
-- lnum: The line number of the first line in the fold.
-- endLnum: The line number of the last line in the fold.
-- width: The width of the window.
--
--@type function
--@param virtText
--@param lnum
--@param endLnum
--@param width
--@param truncate
--@return table
local handler = function(virtText, lnum, endLnum, width, truncate) local handler = function(virtText, lnum, endLnum, width, truncate)
local newVirtText = {} local newVirtText = {}
local suffix = (' 󰁂 %d '):format(endLnum - lnum) local suffix = (' 󰁂 %d '):format(endLnum - lnum)
@@ -27,8 +46,6 @@ local handler = function(virtText, lnum, endLnum, width, truncate)
end end
return { return {
-- Not UFO in the sky, but an ultra fold in Neovim.
-- https://github.com/kevinhwang91/nvim-ufo/
{ {
'kevinhwang91/nvim-ufo', 'kevinhwang91/nvim-ufo',
lazy = false, lazy = false,

View File

@@ -72,6 +72,9 @@ return {
enabled = true, enabled = true,
lazy = false, lazy = false,
version = '*', version = '*',
keys = {
{ '<leader>tc', '<cmd>CloakToggle<cr>', desc = '[tc] Toggle Cloak' },
},
config = function() config = function()
require('cloak').setup { require('cloak').setup {
enabled = true, enabled = true,
@@ -95,9 +98,6 @@ return {
}, },
} }
end, end,
keys = {
{ '<leader>tc', '<cmd>CloakToggle<cr>', desc = '[tc] Toggle Cloak' },
},
}, },
-- Close buffer without messing up with the window. -- Close buffer without messing up with the window.
-- https://github.com/famiu/bufdelete.nvim -- https://github.com/famiu/bufdelete.nvim
@@ -125,18 +125,6 @@ return {
{ {
'LudoPinelli/comment-box.nvim', 'LudoPinelli/comment-box.nvim',
opts = {}, opts = {},
init = function()
local wk = require 'which-key'
wk.add {
{ '<leader>cb', group = 'CommentBox' },
{ '<leader>cbb', '<Cmd>CBccbox<CR>', desc = 'CommentBox: Box Title' },
{ '<leader>cbd', '<Cmd>CBd<CR>', desc = 'CommentBox: Remove a box' },
{ '<leader>cbl', '<Cmd>CBline<CR>', desc = 'CommentBox: Simple Line' },
{ '<leader>cbm', '<Cmd>CBllbox14<CR>', desc = 'CommentBox: Marked' },
{ '<leader>cbt', '<Cmd>CBllline<CR>', desc = 'CommentBox: Titled Line' },
}
end,
}, },
-- Automatically expand width of the current window. -- Automatically expand width of the current window.
-- Maximizes and restore it. And all this with nice animations! -- Maximizes and restore it. And all this with nice animations!

View File

@@ -14,7 +14,14 @@ return {
wk.setup() wk.setup()
wk.add { wk.add {
-- Groups -- Better default experience
{ '<space>', '<Nop>', mode = { 'n', 'v' } },
-- ╭─────────────────────────────────────────────────────────╮
-- │ With leader │
-- ╰─────────────────────────────────────────────────────────╯
-- ── Buffer ──────────────────────────────────────────────────────────
{ {
'<leader>b', '<leader>b',
group = '[b] Buffer', group = '[b] Buffer',
@@ -22,17 +29,54 @@ return {
return require('which-key.extras').expand.buf() return require('which-key.extras').expand.buf()
end, end,
}, },
{ '<leader>bk', ':blast<cr>', desc = 'Buffer: Last', mode = 'n' },
{ '<leader>bj', ':bfirst<cr>', desc = 'Buffer: First', mode = 'n' },
{ '<leader>bh', ':bprev<cr>', desc = 'Buffer: Prev', mode = 'n' },
{ '<leader>bl', ':bnext<cr>', desc = 'Buffer: Next', mode = 'n' },
{ '<leader>bd', ':Bdelete<cr>', desc = 'Buffer: Delete', mode = 'n' },
{ '<leader>bw', ':Bwipeout<cr>', desc = 'Buffer: Wipeout', mode = 'n' },
-- ── Code ────────────────────────────────────────────────────────────
{ '<leader>c', group = '[c] Code' }, { '<leader>c', group = '[c] Code' },
{ '<leader>d', group = '[d] Document' }, -- ── Code: CommentBox ────────────────────────────────────────────────
{ '<leader>cb', group = 'CommentBox' },
{ '<leader>cbb', '<Cmd>CBccbox<CR>', desc = 'CommentBox: Box Title' },
{ '<leader>cbd', '<Cmd>CBd<CR>', desc = 'CommentBox: Remove a box' },
{ '<leader>cbl', '<Cmd>CBline<CR>', desc = 'CommentBox: Simple Line' },
{ '<leader>cbm', '<Cmd>CBllbox14<CR>', desc = 'CommentBox: Marked' },
{ '<leader>cbt', '<Cmd>CBllline<CR>', desc = 'CommentBox: Titled Line' },
{ '<leader>d', group = '[d] DAP' },
-- See: lua/plugins/dap.lua
{ '<leader>g', group = '[g] Git' }, { '<leader>g', group = '[g] Git' },
-- See: lua/plugins/git.lua
{ '<leader>h', group = '[h] Harpoon' },
-- See: lua/plugins/harpoon.lua
{ '<leader>l', group = '[l] LSP' }, { '<leader>l', group = '[l] LSP' },
{ '<leader>p', group = '[p] Project' }, -- See: lua/plugins/lsp.lua
-- ── Quit ────────────────────────────────────────────────────────────
{ '<leader>q', group = '[q] Quit' }, { '<leader>q', group = '[q] Quit' },
{ '<leader>qf', ':q<CR>', desc = 'Quicker close split' },
{ '<leader>qq', ':wq!<CR>', desc = 'Quit with force saving' },
{ '<leader>qw', ':wq<CR>', desc = 'Write and quit' },
{ '<leader>s', group = '[s] Search' }, { '<leader>s', group = '[s] Search' },
-- See: lua/plugins/telescope.lua
-- ── Toggle ──────────────────────────────────────────────────────────
{ '<leader>t', group = '[t] Toggle' }, { '<leader>t', group = '[t] Toggle' },
{ '<leader>tt', ':TransparentToggle<CR>', desc = 'Toggle Transparency' },
{ '<leader>ts', ':noh<CR>', desc = 'Toggle Search Highlighting' },
{ '<leader>w', group = '[w] Workspace' }, { '<leader>w', group = '[w] Workspace' },
{ '<leader>x', group = '[z] Trouble' }, { '<leader>x', group = '[x] Trouble' },
{ '<leader>z', group = '[x] FZF & Harpoon' }, { '<leader>z', group = '[z] FZF' },
-- ── Help ────────────────────────────────────────────────────────────
{ '<leader>?', group = '[?] Help' }, { '<leader>?', group = '[?] Help' },
{ {
'<leader>?w', '<leader>?w',
@@ -41,8 +85,56 @@ return {
end, end,
desc = 'Buffer Local Keymaps (which-key)', desc = 'Buffer Local Keymaps (which-key)',
}, },
-- Misc keybinds
-- ╭─────────────────────────────────────────────────────────╮
-- │ Without leader │
-- ╰─────────────────────────────────────────────────────────╯
{ 'y', group = 'Yank & Surround' },
-- ── Old habits ──────────────────────────────────────────────────────
{ '<C-s>', ':w<CR>', desc = 'Save file' },
-- ── Text manipulation in visual mode ────────────────────────────────
{ '>', '>gv', desc = 'Indent Right', mode = 'v' },
{ '<', '<gv', desc = 'Indent Left', mode = 'v' },
{ 'J', ":m '>+1<CR>gv=gv", desc = 'Move Block Down', mode = 'v' },
{ 'K', ":m '<-2<CR>gv=gv", desc = 'Move Block Up', mode = 'v' },
-- ── Misc keybinds ───────────────────────────────────────────────────
{ 'QQ', ':q!<CR>', desc = 'Quit without saving' }, { 'QQ', ':q!<CR>', desc = 'Quit without saving' },
{ 'WW', ':w!<CR>', desc = 'Force write to file' },
{ 'ss', ':noh<CR>', desc = 'Clear Search Highlighting' },
{ 'jj', '<Esc>', desc = 'Esc without touching esc in insert mode', mode = 'i' },
-- ── Splits ──────────────────────────────────────────────────────────
-- Use CTRL+<hjkl> to switch between windows in normal mode
-- See `:help wincmd` for a list of all window commands
{ '<C-h>', '<C-w><C-h>', desc = 'Move focus to the left window' },
{ '<C-l>', '<C-w><C-l>', desc = 'Move focus to the right window' },
{ '<C-j>', '<C-w><C-j>', desc = 'Move focus to the lower window' },
{ '<C-k>', '<C-w><C-k>', desc = 'Move focus to the upper window' },
-- Split resizing
{ '<C-w>,', ':vertical resize -10<CR>', desc = 'V Resize -' },
{ '<C-w>.', ':vertical resize +10<CR>', desc = 'V Resize +' },
-- ── Disable arrow keys in normal mode ───────────────────────────────
{ '<left>', '<cmd>echo "Use h to move!!"<CR>' },
{ '<right>', '<cmd>echo "Use l to move!!"<CR>' },
{ '<up>', '<cmd>echo "Use k to move!!"<CR>' },
{ '<down>', '<cmd>echo "Use j to move!!"<CR>' },
-- ── Terminal ────────────────────────────────────────────────────────
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
-- is not what someone will guess without a bit more experience.
--
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
-- or just use <C-\><C-n> to exit terminal mode.
{ '<Esc><Esc>', '<C-\\><C-n>', desc = 'Exit terminal mode', mode = 't' },
-- ── Search ──────────────────────────────────────────────────────────
-- :noh if you have search highlights
{ '<Esc><Esc>', ':noh<CR>', desc = 'Clear search highlights' },
} }
end, end,
} }

View File

@@ -2,101 +2,98 @@
```txt ```txt
n <Space>zg * :Rg<CR> n <Space>/ * <Lua 380: ~/.config/nvim/lua/plugins/telescope.lua:82>
FZF: search with rg (aka live grep). [/] Fuzzily search in current buffer]
n <Space>zm * :Maps<CR> n <Space>hw * <Lua 42: ~/.config/nvim/lua/plugins/harpoon.lua:40>
FZF: search mappings. Open harpoon window with telescope
n <Space>zh * :History<CR> n <Space>1 * <Lua 40: ~/.config/nvim/lua/plugins/harpoon.lua:68>
FZF: search history of opened files harpoon to file 1
n <Space>zb * :Buffers<CR> n <Space>hn * <Lua 39: ~/.config/nvim/lua/plugins/harpoon.lua:61>
FZF: search open buffers. harpoon to next file
n <Space>zt * :Windows<CR> n <Space>hp * <Lua 38: ~/.config/nvim/lua/plugins/harpoon.lua:54>
FZF: search open tabs. harpoon to previous file
n <Space>zc * :Commands<CR> n <Space>ha * <Lua 37: ~/.config/nvim/lua/plugins/harpoon.lua:47>
FZF: search commands. harpoon file
n <Space>zf * :FZF<Space> n <Space>5 * <Lua 36: ~/.config/nvim/lua/plugins/harpoon.lua:96>
FZF: search for files in given path. harpoon to file 5
n <Space>4 * <Lua 35: ~/.config/nvim/lua/plugins/harpoon.lua:89>
harpoon to file 4
n <Space>3 * <Lua 34: ~/.config/nvim/lua/plugins/harpoon.lua:82>
harpoon to file 3
n <Space>2 * <Lua 33: ~/.config/nvim/lua/plugins/harpoon.lua:75>
harpoon to file 2
n <Space>tc * <Cmd>CloakToggle<CR> n <Space>tc * <Cmd>CloakToggle<CR>
[tc] Toggle Cloak [tc] Toggle Cloak
n <Space>/ * <Lua 189: ~/.config/nvim/lua/plugins/telescope.lua:85> n <Space>xx * <Cmd>Trouble<CR>
[/] Fuzzily search in current buffer] Toggle Trouble
n <Space>ht * <Lua 267: ~/.config/nvim/lua/plugins/harpoon.lua:16> n <Space>xq * <Cmd>Trouble quickfix<CR>
n <Space>1 * <Lua 65: ~/.config/nvim/lua/plugins/harpoon.lua:68> Toggle Quickfix
harpoon to file 1 n <Space>xl * <Cmd>Trouble loclist<CR>
n <Space>xn * <Lua 64: ~/.config/nvim/lua/plugins/harpoon.lua:61> Toggle Loclist
harpoon to next file n <Space>xd * <Cmd>Trouble document_diagnostics<CR>
n <Space>xN * <Lua 63: ~/.config/nvim/lua/plugins/harpoon.lua:54> Toggle Document Diagnostics
harpoon to previous file n <Space>xw * <Cmd>Trouble workspace_diagnostics<CR>
n <Space>xa * <Lua 136: ~/.config/nvim/lua/plugins/harpoon.lua:40> Toggle Workspace Diagnostics
Open harpoon window n <Space>?s * <Cmd>Neoconf show<CR>
n <Space>5 * <Lua 61: ~/.config/nvim/lua/plugins/harpoon.lua:96>
harpoon to file 5
n <Space>4 * <Lua 60: ~/.config/nvim/lua/plugins/harpoon.lua:89>
harpoon to file 4
n <Space>3 * <Lua 59: ~/.config/nvim/lua/plugins/harpoon.lua:82>
harpoon to file 3
n <Space>2 * <Lua 57: ~/.config/nvim/lua/plugins/harpoon.lua:75>
harpoon to file 2
n <Space>gB * :G blame<CR>
n <Space>gb * :Telescope git_branches<CR>
n <Space>gP * :Neogit push<CR>
n <Space>gp * :Neogit pull<CR>
n <Space>gc * :Neogit commit<CR>
n <Space>gs * <Lua 121: ~/.local/share/nvim/lazy/neogit/lua/neogit.lua:151>
n <Space>e * <Lua 96: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
NeoTree reveal
n <Space>ca * <Lua 95: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Code Action
n <Space>wl * <Lua 94: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Workspace List Folders
n <Space>wr * <Lua 93: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Workspace Remove Folder
n <Space>wa * <Lua 92: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Workspace Add Folder
n <Space>ws * <Lua 91: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Workspace Symbols
n <Space>D * <Lua 89: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Type Definition
n <Space>dq * <Lua 87: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Diagnostic: Set loc list
n <Space>do * <Lua 86: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Diagnostic: Open float
n <Space>cr * <Lua 84: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Rename
n <Space>ds * <Lua 83: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Document Symbols
n <Space>?s * <Lua 78: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Neoconf: Show merged config Neoconf: Show merged config
n <Space>?m * <Lua 77: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n <Space>?m * <Cmd>Neoconf lsp<CR>
Neoconf: Show merged LSP config Neoconf: Show merged LSP config
n <Space>?l * <Lua 76: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n <Space>?l * <Cmd>Neoconf local<CR>
Neoconf: Local Neoconf: Local
n <Space>?g * <Lua 75: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n <Space>?g * <Cmd>Neoconf global<CR>
Neoconf: Global Neoconf: Global
n <Space>?c * <Lua 73: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n <Space>?c * <Cmd>Neoconf<CR>
Neoconf: Open Neoconf: Open
<Space>f * <Lua 37: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n <Space>wl * <Cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>
LSP: Workspace List Folders
n <Space>wr * <Cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>
LSP: Workspace Remove Folder
n <Space>wa * <Cmd>lua vim.lsp.buf.add_workspace_folder()<CR>
LSP: Workspace Add Folder
n <Space>ws * <Cmd>lua require("telescope.builtin").lsp_dynamic_workspace_symbols()<CR>
LSP: Workspace Symbols
n <Space>ds * <Cmd>lua require("telescope.builtin").lsp_document_symbols()<CR>
LSP: Document Symbols
n <Space>D * <Cmd>lua vim.lsp.buf.type_definition()<CR>
LSP: Type Definition
n <Space>ca * <Cmd>lua vim.lsp.buf.code_action()<CR>
LSP: Code Action
n <Space>cr * <Cmd>lua vim.lsp.buf.rename()<CR>
LSP: Rename
n <Space>dq * <Cmd>lua vim.diagnostic.setloclist()<CR>
Diagnostic: Set loc list
n <Space>do * <Cmd>lua vim.diagnostic.open_float()<CR>
Diagnostic: Open float
<Space>cf * <Lua 107: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
[f] Format buffer [f] Format buffer
n <Space>qq * <Cmd>wq!<CR> n <Space>e * <Lua 81: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
[qq] Quickly Quit NeoTree reveal
n <Space>xe * <Cmd>GoIfErr<CR> n <Space>cg * <Lua 50: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Go If Error Generate annotations
v <Space> * <Nop> n <Space>zm * <Lua 49: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
n <Space> * <Nop> FZF: search mappings.
n <Space>qf * :q<CR> n <Space>zh * <Lua 48: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Quicker close split FZF: search history of opened files
n <Space>bw :Bwipeout<CR> n <Space>zb * <Lua 47: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Buffer: Wipeout FZF: search open buffers.
n <Space>bd :Bdelete<CR> n <Space>zt * <Lua 46: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Buffer: Delete FZF: search open tabs.
n <Space>bl :bnext<CR> n <Space>zc * <Lua 32: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Buffer: Next FZF: search commands.
n <Space>bh :bprev<CR> n <Space>zf * <Lua 31: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Buffer: Prev FZF: search for files in given path.
n <Space>bj :bfirst<CR> n <Space>zg * <Lua 25: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Buffer: First FZF: search with rg (aka live grep).
n <Space>bk :blast<CR> n <Space>dc * <Lua 45: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Buffer: Last DAP: Continue
n <Space>db * <Lua 44: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
DAP: Toggle Breakpoint
n <Space>dt * <Lua 43: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
DAP: Toggle UI
n <Space>ht * <Lua 369: ~/.config/nvim/lua/plugins/harpoon.lua:16>
Open Harpoon Quick menu
n <Space>dr * <Lua 41: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
DAP: Reset
x # * <Lua 7: vim/_defaults.lua:0> x # * <Lua 7: vim/_defaults.lua:0>
:help v_#-default :help v_#-default
o % <Plug>(MatchitOperationForward) o % <Plug>(MatchitOperationForward)
@@ -108,17 +105,11 @@ x * * <Lua 3: vim/_defaults.lua:0>
:help v_star-default :help v_star-default
x @ * mode() == 'V' ? ':normal! @'.getcharstr().'<CR>' : '@' x @ * mode() == 'V' ? ':normal! @'.getcharstr().'<CR>' : '@'
:help v_@-default :help v_@-default
n B ^ n K * <Cmd>lua vim.lsp.buf.hover()<CR>
n E $
n K * <Lua 82: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Hover Documentation LSP: Hover Documentation
n QQ :q!<CR>
Quickly Quit
x Q * mode() == 'V' ? ':normal! @<C-R>=reg_recorded()<CR><CR>' : 'Q' x Q * mode() == 'V' ? ':normal! @<C-R>=reg_recorded()<CR><CR>' : 'Q'
:help v_Q-default :help v_Q-default
x S <Plug>VSurround x S <Plug>VSurround
n WW :w!<CR>
Force write
n Y * y$ n Y * y$
:help Y-default :help Y-default
o [% <Plug>(MatchitOperationMultiBackward) o [% <Plug>(MatchitOperationMultiBackward)
@@ -135,36 +126,24 @@ x a% <Plug>(MatchitVisualTextObject)
n cS <Plug>CSurround n cS <Plug>CSurround
n cs <Plug>Csurround n cs <Plug>Csurround
n ds <Plug>Dsurround n ds <Plug>Dsurround
n dn * <Lua 81: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n dp * <Cmd>lua vim.diagnostic.goto_prev()<CR>
Diagnostic: Goto Next
n dp * <Lua 80: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Diagnostic: Goto Prev Diagnostic: Goto Prev
n dn * <Cmd>lua vim.diagnostic.goto_next()<CR>
Diagnostic: Goto Next
o g% <Plug>(MatchitOperationBackward) o g% <Plug>(MatchitOperationBackward)
x g% <Plug>(MatchitVisualBackward) x g% <Plug>(MatchitVisualBackward)
n g% <Plug>(MatchitNormalBackward) n g% <Plug>(MatchitNormalBackward)
x gS <Plug>VgSurround x gS <Plug>VgSurround
n gP * <Lua 265: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:132>
Close preview windows
n gpr * <Lua 264: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:114>
Preview references
n gpD * <Lua 263: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:105>
Preview declaration
n gpi * <Lua 262: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:91>
Preview implementation
n gpt * <Lua 261: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:77>
Preview type definition
n gpd * <Lua 259: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:63>
Preview definition
n gR * :RegexplainerToggle<CR> n gR * :RegexplainerToggle<CR>
Toggle Regexplainer Toggle Regexplainer
n gd * <Lua 90: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> n gD * <Cmd>lua vim.lsp.buf.declaration()<CR>
LSP: Goto Definition
n gr * <Lua 88: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Goto References
n gI * <Lua 85: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Goto Implementation
n gD * <Lua 79: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
LSP: Goto Declaration LSP: Goto Declaration
n gd * <Cmd>lua vim.lsp.buf.definition()<CR>
LSP: Goto Definition
n gr * <Cmd>lua require("telescope.builtin").lsp_references()<CR>
LSP: Goto References
n gI * <Cmd>lua vim.lsp.buf.implementation()<CR>
LSP: Goto Implementation
o gc * <Lua 13: vim/_defaults.lua:0> o gc * <Lua 13: vim/_defaults.lua:0>
Comment textobject Comment textobject
n gcc * <Lua 12: vim/_defaults.lua:0> n gcc * <Lua 12: vim/_defaults.lua:0>
@@ -178,12 +157,11 @@ x gx * <Lua 9: vim/_defaults.lua:0>
n gx * <Lua 8: vim/_defaults.lua:0> n gx * <Lua 8: vim/_defaults.lua:0>
Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) Opens filepath or URI under cursor with the system handler (file explorer, web browser, …)
n j * v:count == 0 ? 'gj' : 'j' n j * v:count == 0 ? 'gj' : 'j'
Move down
n k * v:count == 0 ? 'gk' : 'k' n k * v:count == 0 ? 'gk' : 'k'
n n * <Lua 71: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121> Move up
n n * <Lua 51: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Twilight Twilight
n ss * :noh<CR>
n tT * :TransparentToggle<CR>
Toggle Transparency
n ySS <Plug>YSsurround n ySS <Plug>YSsurround
n ySs <Plug>YSsurround n ySs <Plug>YSsurround
n yss <Plug>Yssurround n yss <Plug>Yssurround
@@ -202,59 +180,44 @@ x <Plug>(MatchitVisualBackward) * :<C-U>call matchit#Match_wrapper('',0,'v')<CR
x <Plug>(MatchitVisualForward) * :<C-U>call matchit#Match_wrapper('',1,'v')<CR>:if col("''") != col("$") | exe ":normal! m'" | endif<CR>gv`` x <Plug>(MatchitVisualForward) * :<C-U>call matchit#Match_wrapper('',1,'v')<CR>:if col("''") != col("$") | exe ":normal! m'" | endif<CR>gv``
n <Plug>(MatchitNormalBackward) * :<C-U>call matchit#Match_wrapper('',0,'n')<CR> n <Plug>(MatchitNormalBackward) * :<C-U>call matchit#Match_wrapper('',0,'n')<CR>
n <Plug>(MatchitNormalForward) * :<C-U>call matchit#Match_wrapper('',1,'n')<CR> n <Plug>(MatchitNormalForward) * :<C-U>call matchit#Match_wrapper('',1,'n')<CR>
v <Plug>VgSurround * :<C-U>call <SNR>27_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1)<CR>
v <Plug>VSurround * :<C-U>call <SNR>27_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR>
n <Plug>YSurround * <SNR>27_opfunc2('setup')
n <Plug>Ysurround * <SNR>27_opfunc('setup')
n <Plug>YSsurround * <SNR>27_opfunc2('setup').'_'
n <Plug>Yssurround * '^'.v:count1.<SNR>27_opfunc('setup').'g_'
n <Plug>CSurround * :<C-U>call <SNR>27_changesurround(1)<CR>
n <Plug>Csurround * :<C-U>call <SNR>27_changesurround()<CR>
n <Plug>Dsurround * :<C-U>call <SNR>27_dosurround(<SNR>27_inputtarget())<CR>
n <Plug>SurroundRepeat * .
n <C-L> * :<C-U>TmuxNavigateRight<CR>
n <C-Bslash> * :<C-U>TmuxNavigatePrevious<CR> n <C-Bslash> * :<C-U>TmuxNavigatePrevious<CR>
n <C-J> * :<C-U>TmuxNavigateDown<CR> n <C-J> * :<C-U>TmuxNavigateDown<CR>
n <C-L> * :<C-U>TmuxNavigateRight<CR>
n <C-H> * :<C-U>TmuxNavigateLeft<CR> n <C-H> * :<C-U>TmuxNavigateLeft<CR>
v <Plug>VgSurround * :<C-U>call <SNR>28_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1)<CR> n <C-K> * :<C-U>TmuxNavigateUp<CR>
v <Plug>VSurround * :<C-U>call <SNR>28_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR> s <Plug>luasnip-jump-prev * <Lua 283: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:57>
n <Plug>YSurround * <SNR>28_opfunc2('setup')
n <Plug>Ysurround * <SNR>28_opfunc('setup')
n <Plug>YSsurround * <SNR>28_opfunc2('setup').'_'
n <Plug>Yssurround * '^'.v:count1.<SNR>28_opfunc('setup').'g_'
n <Plug>CSurround * :<C-U>call <SNR>28_changesurround(1)<CR>
n <Plug>Csurround * :<C-U>call <SNR>28_changesurround()<CR>
n <Plug>Dsurround * :<C-U>call <SNR>28_dosurround(<SNR>28_inputtarget())<CR>
n <Plug>SurroundRepeat * .
n <C-P> * :Files<CR>
FZF: search for files starting at current directory.
o <Plug>(fzf-maps-o) * <C-C>:<C-U>call fzf#vim#maps('o', 0)<CR>
x <Plug>(fzf-maps-x) * :<C-U>call fzf#vim#maps('x', 0)<CR>
n <Plug>(fzf-maps-n) * :<C-U>call fzf#vim#maps('n', 0)<CR>
n <Plug>(fzf-normal) * <Nop>
n <Plug>(fzf-insert) * i
s <Plug>luasnip-jump-prev * <Lua 292: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:57>
LuaSnip: Jump to the previous node LuaSnip: Jump to the previous node
s <Plug>luasnip-jump-next * <Lua 291: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:54> s <Plug>luasnip-jump-next * <Lua 282: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:54>
LuaSnip: Jump to the next node LuaSnip: Jump to the next node
s <Plug>luasnip-prev-choice * <Lua 290: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:51> s <Plug>luasnip-prev-choice * <Lua 281: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:51>
LuaSnip: Change to the previous choice from the choiceNode LuaSnip: Change to the previous choice from the choiceNode
s <Plug>luasnip-next-choice * <Lua 289: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:48> s <Plug>luasnip-next-choice * <Lua 280: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:48>
LuaSnip: Change to the next choice from the choiceNode LuaSnip: Change to the next choice from the choiceNode
s <Plug>luasnip-expand-snippet * <Lua 288: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:45> s <Plug>luasnip-expand-snippet * <Lua 279: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:45>
LuaSnip: Expand the current snippet LuaSnip: Expand the current snippet
s <Plug>luasnip-expand-or-jump * <Lua 287: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:42> s <Plug>luasnip-expand-or-jump * <Lua 278: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:42>
LuaSnip: Expand or jump in the current snippet LuaSnip: Expand or jump in the current snippet
<Plug>luasnip-expand-repeat * <Lua 285: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:35> <Plug>luasnip-expand-repeat * <Lua 276: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:35>
LuaSnip: Repeat last node expansion LuaSnip: Repeat last node expansion
n <Plug>luasnip-delete-check * <Lua 283: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:28> n <Plug>luasnip-delete-check * <Lua 274: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:28>
LuaSnip: Removes current snippet from jumplist LuaSnip: Removes current snippet from jumplist
n <Plug>PlenaryTestFile * :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR> n <Plug>PlenaryTestFile * :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR>
n <C-S> * <Cmd>w<CR> n <C-P> * <Lua 26: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
Save file FZF: search for files starting at current directory.
n <C-K> * :<C-U>TmuxNavigateUp<CR>
n <Down> * <Cmd>echo "Use j to move!!"<CR>
n <Up> * <Cmd>echo "Use k to move!!"<CR>
n <Right> * <Cmd>echo "Use l to move!!"<CR>
n <Left> * <Cmd>echo "Use h to move!!"<CR>
n <C-W>. * :vertical resize +10<CR>
V Resize +
n <C-W>, * :vertical resize -10<CR>
V Resize -
n <C-W><C-D> <C-W>d n <C-W><C-D> <C-W>d
Show diagnostics under the cursor Show diagnostics under the cursor
n <C-W>d * <Lua 16: vim/_defaults.lua:0> n <C-W>d * <Lua 16: vim/_defaults.lua:0>
Show diagnostics under the cursor Show diagnostics under the cursor
``` ```
- Generated on Mon 23 Sep 2024 10:24:56 EEST - Generated on Wed 25 Sep 2024 14:52:25 EEST

View File

@@ -3,7 +3,7 @@
# #
# shellcheck source=shared.sh # shellcheck source=shared.sh
echo "This file has been deprecated in favor of asdf. Please use asdf instead." echo "This file ($0) has been deprecated in favor of asdf. Please use asdf instead."
exit 0 exit 0
eval "$HOME/.dotfiles/config/shared.sh" eval "$HOME/.dotfiles/config/shared.sh"

View File

@@ -2,6 +2,10 @@
# #
# Install fzf # Install fzf
# #
echo "This file ($0) has been deprecated in favor of asdf. Please use asdf instead."
exit 0
# shellcheck source=shared.sh # shellcheck source=shared.sh
eval "$DOTFILES/config/shared.sh" eval "$DOTFILES/config/shared.sh"

View File

@@ -3,7 +3,7 @@
# #
# shellcheck source=shared.sh # shellcheck source=shared.sh
echo "This file has been deprecated in favor of asdf. Please use asdf instead." echo "This file ($0) has been deprecated in favor of asdf. Please use asdf instead."
exit 0 exit 0
eval "$DOTFILES/config/shared.sh" eval "$DOTFILES/config/shared.sh"

View File

@@ -3,7 +3,7 @@
# #
# shellcheck source=shared.sh # shellcheck source=shared.sh
echo "This file has been deprecated in favor of asdf. Please use asdf instead." echo "This file ($0) has been deprecated in favor of asdf. Please use asdf instead."
exit 0 exit 0
eval "$DOTFILES/config/shared.sh" eval "$DOTFILES/config/shared.sh"

View File

@@ -3,7 +3,7 @@
# #
# shellcheck source=shared.sh # shellcheck source=shared.sh
echo "This file has been deprecated in favor of asdf. Please use asdf instead." echo "This file ($0) has been deprecated in favor of asdf. Please use asdf instead."
exit 0 exit 0
source "${DOTFILES}/config/shared.sh" source "${DOTFILES}/config/shared.sh"