Skip to content

Commit d3be3f0

Browse files
author
0xfa1z
committed
indentation, seamless navigation tmux and nvim, show dotfiles in nvimtree, autopairs
1 parent 714b060 commit d3be3f0

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

init.lua

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ vim.opt.inccommand = 'split'
155155
-- Show which line your cursor is on
156156
vim.opt.cursorline = true
157157

158+
vim.opt.tabstop = 2
159+
vim.opt.shiftwidth = 2
160+
vim.opt.softtabstop = 2
161+
vim.opt.expandtab = true
162+
158163
-- Minimal number of screen lines to keep above and below the cursor.
159164
vim.opt.scrolloff = 10
160165

@@ -243,8 +248,20 @@ vim.opt.rtp:prepend(lazypath)
243248
-- NOTE: Here is where you install your plugins.
244249
require('lazy').setup({
245250
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
246-
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
247-
'github/copilot.vim', -- GitHub Copilot integration
251+
-- 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
252+
-- 'github/copilot.vim', -- GitHub Copilot integration
253+
254+
{
255+
'christoomey/vim-tmux-navigator', -- Seamless navigation between tmux panes and vim splits
256+
cmd = { 'TmuxNavigateLeft', 'TmuxNavigateDown', 'TmuxNavigateUp', 'TmuxNavigateRight', 'TmuxNavigatePrevious' },
257+
keys = {
258+
{ '<C-h>', 'TmuxNavigateLeft', { mode = 'n', desc = 'Navigate left' } },
259+
{ '<C-j>', 'TmuxNavigateDown', { mode = 'n', desc = 'Navigate down' } },
260+
{ '<C-k>', 'TmuxNavigateUp', { mode = 'n', desc = 'Navigate up' } },
261+
{ '<C-l>', 'TmuxNavigateRight', { mode = 'n', desc = 'Navigate right' } },
262+
{ '<C-\\>', 'TmuxNavigatePrevious', { mode = 'n', desc = 'Navigate to previous' } },
263+
},
264+
},
248265

249266
-- nvim-tree
250267
{
@@ -261,7 +278,7 @@ require('lazy').setup({
261278
group_empty = true,
262279
},
263280
filters = {
264-
dotfiles = true,
281+
dotfiles = false,
265282
},
266283
}
267284
end,
@@ -916,7 +933,7 @@ require('lazy').setup({
916933
-- require 'kickstart.plugins.debug',
917934
-- require 'kickstart.plugins.indent_line',
918935
-- require 'kickstart.plugins.lint',
919-
-- require 'kickstart.plugins.autopairs',
936+
require 'kickstart.plugins.autopairs',
920937
-- require 'kickstart.plugins.neo-tree',
921938
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
922939

0 commit comments

Comments
 (0)