From 76b734d02274f27abae84c85ddf710731c6aa036 Mon Sep 17 00:00:00 2001 From: anuransi Date: Tue, 30 Dec 2025 14:42:08 -0800 Subject: [PATCH] Add keymappings --- init.lua | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b98ffc61..5b70f7a0 100644 --- a/init.lua +++ b/init.lua @@ -199,6 +199,31 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- My key-mappings + +vim.opt.guicursor = 'i:hor10' + +local opt = vim.opt + +-- tabs and indentation +opt.expandtab = true +opt.tabstop = 2 +opt.shiftwidth = 2 + +-- search settings +opt.ignorecase = true -- disable case sensitive search by default +opt.smartcase = true -- if mixed case is included in the search, turns on case sensitive match + +opt.cursorline = true + +opt.termguicolors = true +opt.background = 'dark' +opt.signcolumn = 'yes' + +vim.o.completeopt = 'menuone,noinsert,noselect' + +-- My key-mappings END + -- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes -- vim.keymap.set("n", "", "H", { desc = "Move window to the left" }) -- vim.keymap.set("n", "", "L", { desc = "Move window to the right" }) @@ -941,7 +966,7 @@ require('lazy').setup({ { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate', - main = 'nvim-treesitter.configs', -- Sets main module to use for opts + main = 'nvim-treesitter', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },