fix tab issues

This commit is contained in:
marcinburzynski 2026-01-25 21:09:31 +01:00
parent fee1f7dd79
commit 530e21807f
No known key found for this signature in database
GPG Key ID: 5BCFD85D87999C32
1 changed files with 23 additions and 2 deletions

View File

@ -82,8 +82,6 @@ vim.opt.expandtab = true
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4
vim.opt.tabstop = 4 vim.opt.tabstop = 4
vim.opt.softtabstop = 4 vim.opt.softtabstop = 4
vim.opt.smartindent = true
vim.opt.autoindent = true
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
@ -118,6 +116,19 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower 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' }) vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- LuaSnip snippet navigation
vim.keymap.set({ 'i', 's' }, '<C-l>', function()
if require('luasnip').jumpable(1) then
require('luasnip').jump(1)
end
end, { desc = 'Jump to next snippet placeholder' })
vim.keymap.set({ 'i', 's' }, '<C-h>', function()
if require('luasnip').jumpable(-1) then
require('luasnip').jump(-1)
end
end, { desc = 'Jump to previous snippet placeholder' })
-- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes -- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" }) -- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" }) -- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
@ -761,6 +772,16 @@ require('lazy').setup({
}, },
'folke/lazydev.nvim', 'folke/lazydev.nvim',
}, },
config = function(_, opts)
require('luasnip').setup {
history = true,
region_check_events = 'InsertEnter',
delete_check_events = 'TextChanged,InsertLeave',
}
require('blink.cmp').setup(opts)
end,
--- @module 'blink.cmp' --- @module 'blink.cmp'
--- @type blink.cmp.Config --- @type blink.cmp.Config
opts = { opts = {