diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 3c989ee..112d8c7 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -10,6 +10,7 @@ "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "nvim-cmp": { "branch": "main", "commit": "c27370703e798666486e3064b64d59eaf4bdc6d5" }, "nvim-lspconfig": { "branch": "master", "commit": "fd26f8626c03b424f7140d454031d1dcb8d23513" }, + "outline.nvim": { "branch": "main", "commit": "ae473fb51b7b6086de0876328c81a63f9c3ecfef" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" }, "telescope.nvim": { "branch": "master", "commit": "814f102cd1da3dc78c7d2f20f2ef3ed3cdf0e6e4" }, diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua index 98ac931..2624d20 100644 --- a/nvim/lua/options.lua +++ b/nvim/lua/options.lua @@ -9,7 +9,7 @@ vim.opt.smartcase = true -- show line numbers vim.opt.number = true -vim.opt.relativenumber = true +vim.opt.relativenumber = false vim.opt.cursorline = true -- show trailing whitespace @@ -34,3 +34,7 @@ vim.keymap.set("n", "", "l") -- Keymap to copy to system buffer vim.keymap.set('n','y','"+yy') vim.keymap.set('v','y','"+y') + +-- Keymap to navigate between tabs +vim.keymap.set('n', 'H', 'gT') +vim.keymap.set('n', 'L', 'gt') diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index 5ce6e7e..a341ff9 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -69,7 +69,21 @@ local plugins = { { (not IsYandex) and "lewis6991/gitsigns.nvim" or nil, dir = (IsYandex) and "~/arcadia/contrib/tier1/gitsigns.arc.nvim" or nil, - } + }, + { + "hedyhli/outline.nvim", + lazy = true, + cmd = { "Outline", "OutlineOpen" }, + keys = { -- Example mapping to toggle outline + { "o", "Outline", desc = "Toggle outline" }, + }, + opts = { + outline_window = { + position = "left", + } + -- Your setup opts here + }, + }, } require("lazy").setup(plugins)