Skip to content

Commit

Permalink
feat(nvim): add undotree
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Aug 18, 2024
1 parent 5b545bc commit e9e9042
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/configs/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
neoformat
comment-nvim
nvim-colorizer-lua
which-key-nvim
undotree
vim-speeddating
luasnip
vim-startuptime
Expand Down
6 changes: 6 additions & 0 deletions shell/configs/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ nvim_lsp.rust_analyzer.setup({
},
})

require("which-key").setup({
icons = {
mappings = false,
},
})

require("nvim-treesitter.configs").setup({
highlight = {
enable = true,
Expand Down
1 change: 1 addition & 0 deletions shell/configs/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ nnoremap <leader>fh <cmd>Telescope harpoon marks<cr>
nnoremap <leader>z <cmd>ZenMode <cr>
nnoremap <leader>b <cmd>Neotree toggle<cr>
nnoremap <leader>g <cmd>Git <cr>
nnoremap <leader>u <cmd>UndotreeToggle <cr>
nnoremap <leader>m <cmd>lua require("harpoon.mark").add_file()<cr>
nnoremap <leader>hp <cmd>lua require("harpoon.ui").toggle_quick_menu()<cr>
Expand Down

0 comments on commit e9e9042

Please sign in to comment.