diff --git a/init.lua b/init.lua index 90808b8..39eb5ee 100644 --- a/init.lua +++ b/init.lua @@ -12,6 +12,7 @@ vim.cmd("set termguicolors") vim.cmd("set clipboard+=unnamedplus") vim.cmd("set updatetime=700") vim.cmd("set whichwrap+=<,>,[,]") +vim.cmd("set relativenumber") vim.diagnostic.config({ update_in_insert = true, float = { border = "single" }, @@ -181,7 +182,9 @@ local plugins = { -- or leave it empty to use the default settings -- refer to the configuration section below } - } + }, + { 'nvim-treesitter/nvim-treesitter-context' }, + { 'mg979/vim-visual-multi' } } local opts = { } @@ -376,6 +379,8 @@ vim.keymap.set("v", "", "t', ':TodoTelescope') vim.keymap.set('v', "", "dpV`]") vim.keymap.set('v', "", "dkPV`]") +vim.keymap.set('n', '5', ':+5') +vim.keymap.set('n', '4', ':-5') require("nvim-treesitter.configs").setup { incremental_selection = { enable = true, @@ -393,7 +398,7 @@ require("overseer").setup({ vim.api.nvim_create_autocmd("FileType", { pattern = "cpp", callback = function() - vim.api.nvim_buf_set_keymap(0, 'n', "b", ":split:te g++ -std=c++17 -Wall -Ofast -fsanitize=address % && ./a.out < std.ini", { + vim.api.nvim_buf_set_keymap(0, 'n', "b", ":split:te g++ -std=c++17 -Wall -Ofast -g -fsanitize=address % && ./a.out < std.ini", { silent = true, noremap = true })