diff --git a/config/nvim/lua/autogroups.lua b/config/nvim/lua/autogroups.lua index 046c7ff..e2e74ef 100644 --- a/config/nvim/lua/autogroups.lua +++ b/config/nvim/lua/autogroups.lua @@ -68,4 +68,10 @@ vim.api.nvim_create_autocmd({ 'FileType' }, { callback = function() vim.opt_local.conceallevel = 0 end, }) +vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, { + desc = 'Set filetype for SSH config directory', + pattern = '*/?.ssh/{config|shared}.d/*', + command = 'set filetype=sshconfig', +}) + -- vim: ts=2 sts=2 sw=2 et diff --git a/config/nvim/lua/plugins/mini.lua b/config/nvim/lua/plugins/mini.lua index e216404..d400682 100644 --- a/config/nvim/lua/plugins/mini.lua +++ b/config/nvim/lua/plugins/mini.lua @@ -16,6 +16,24 @@ return { -- Replaced kylechui/nvim-surround { 'echasnovski/mini.surround', version = '*', opts = {} }, + -- Move lines and blocks of text + { 'echasnovski/mini.move', version = '*', opts = {} }, + + -- Jump to next/previous single character + { + 'echasnovski/mini.jump', + version = '*', + opts = { + mappings = { + forward = 'f', + backward = 'F', + forward_till = 't', + backward_till = 'T', + repeat_jump = ';', + }, + }, + }, + -- Icons { 'echasnovski/mini.icons', @@ -30,6 +48,9 @@ return { }, }, + -- Highlight cursor word and its matches + { 'echasnovski/mini.cursorword', version = '*' }, + -- Split and join arguments, lists, and other sequences -- Replaced Wansmer/treesj { 'echasnovski/mini.splitjoin', version = '*', opts = {} }, diff --git a/config/nvim/lua/plugins/ufo.lua b/config/nvim/lua/plugins/ufo.lua index 7a0e4ae..8e82366 100644 --- a/config/nvim/lua/plugins/ufo.lua +++ b/config/nvim/lua/plugins/ufo.lua @@ -4,7 +4,6 @@ return { 'kevinhwang91/nvim-ufo', version = '*', dependencies = { - { 'neovim/nvim-lspconfig' }, { 'kevinhwang91/promise-async' }, { 'nvim-treesitter/nvim-treesitter' }, { @@ -61,19 +60,6 @@ return { }, }, config = function() - local capabilities = vim.lsp.protocol.make_client_capabilities() - capabilities.textDocument.foldingRange = { - dynamicRegistration = true, - lineFoldingOnly = true, - } - local language_servers = require('lspconfig').util.available_servers() -- or list servers manually like {'gopls', 'clangd'} - for _, ls in ipairs(language_servers) do - require('lspconfig')[ls].setup { - capabilities = capabilities, - -- you can add other fields for setting up lsp server in this table - } - end - require('ufo').setup { open_fold_hl_timeout = 150, close_fold_kinds_for_ft = { 'imports', 'comment' }, diff --git a/config/nvim/lua/plugins/ui.lua b/config/nvim/lua/plugins/ui.lua index bd6e45c..06ad10c 100644 --- a/config/nvim/lua/plugins/ui.lua +++ b/config/nvim/lua/plugins/ui.lua @@ -27,6 +27,10 @@ return { }, }, + -- Neovim plugin to animate the cursor with a smear effect in all terminals + -- https://github.com/sphamba/smear-cursor.nvim + { 'sphamba/smear-cursor.nvim', opts = {} }, + -- A neovim plugin that shows colorcolumn dynamically -- https://github.com/Bekaboo/deadcolumn.nvim { 'Bekaboo/deadcolumn.nvim' }, diff --git a/config/nvim/lua/plugins/which-key.lua b/config/nvim/lua/plugins/which-key.lua index 7403997..7e7d532 100644 --- a/config/nvim/lua/plugins/which-key.lua +++ b/config/nvim/lua/plugins/which-key.lua @@ -140,6 +140,12 @@ return { desc = 'Telescope import', }, + { + 'f', + 'Telescope find_files', + desc = 'Find files', + }, + -- ── Harpoon ───────────────────────────────────────────────────────── -- See: lua/plugins/telescope.lua { 'h', group = '[h] Harpoon' }, @@ -298,6 +304,11 @@ return { 'TransparentToggle', desc = 'Toggle Transparency', }, + { + 'tl', + 'exec &bg=="light"? "set bg=dark" : "set bg=light"', + desc = 'Toggle Light/Dark Theme', + }, }, -- ── Workspace ───────────────────────────────────────────────────────