nvim: add pulgin to return to last location

nixos
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,
})