nvim: add pulgin to return to last location

This commit is contained in:
Moritz Böhme 2023-02-18 17:16:02 +01:00
parent a7356cabbe
commit 1da7930115
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 7 additions and 0 deletions

View file

@ -54,6 +54,7 @@ in
yamlfmt yamlfmt
]; ];
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
nvim-lastplace
catppuccin-nvim catppuccin-nvim
cmp-nvim-lsp cmp-nvim-lsp
cmp_luasnip cmp_luasnip

View file

@ -432,3 +432,9 @@ orgmode.setup({
}) })
require("gitsigns").setup() require("gitsigns").setup()
require("nvim-lastplace").setup({
lastplace_ignore_buftype = { "quickfix", "nofile", "help" },
lastplace_ignore_filetype = { "gitcommit", "gitrebase", "svn", "hgcommit" },
lastplace_open_folds = true,
})