diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-05 03:50:59 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-05 03:50:59 +0530 |
commit | 0c0e96817349068eca2ddd900f5adc617784f01a (patch) | |
tree | 9e0be3201dc84f384512f7fe3bb8989c1d3931a1 | |
parent | fc74188003dcc6fca69ffad2dcd79e3543b415e9 (diff) |
adding nvim plugin to preserve last editing position in file
-rw-r--r-- | .config/nvim/init.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/justsaumit/lastplace-config.lua | 5 | ||||
-rw-r--r-- | .config/nvim/lua/justsaumit/plugins.lua | 7 | ||||
-rw-r--r-- | .config/nvim/plugin/packer_compiled.lua | 5 | ||||
-rw-r--r-- | .config/shell/aliasrc | 1 |
5 files changed, 15 insertions, 4 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 08d41d0..f6ac542 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -5,4 +5,5 @@ require("justsaumit.colorscheme") require("justsaumit.treesitter-config") require("justsaumit.lualine-config") require("justsaumit.bufferline-config") +require("justsaumit.lastplace-config") print ("while(!(success = try());") diff --git a/.config/nvim/lua/justsaumit/lastplace-config.lua b/.config/nvim/lua/justsaumit/lastplace-config.lua new file mode 100644 index 0000000..4fa6a83 --- /dev/null +++ b/.config/nvim/lua/justsaumit/lastplace-config.lua @@ -0,0 +1,5 @@ +require'nvim-lastplace'.setup { + lastplace_ignore_buftype = {"quickfix", "nofile", "help"}, + lastplace_ignore_filetype = {"gitcommit", "gitrebase", "svn", "hgcommit"}, + lastplace_open_folds = true +} diff --git a/.config/nvim/lua/justsaumit/plugins.lua b/.config/nvim/lua/justsaumit/plugins.lua index 007bce0..b8adbae 100644 --- a/.config/nvim/lua/justsaumit/plugins.lua +++ b/.config/nvim/lua/justsaumit/plugins.lua @@ -42,9 +42,10 @@ packer.init { --Install all your plugins here return packer.startup(function(use) --Necessities - use "wbthomason/packer.nvim" -- Have packer manage itself - use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim - use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins + use "wbthomason/packer.nvim" -- Have packer manage itself + use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim + use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins + use "ethanholz/nvim-lastplace" -- Preserve last editing position in nvim --TreeSitter use {'nvim-treesitter/nvim-treesitter',run = ':TSUpdate'} --ColorSchemes diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua index 2d9dd39..19b2e0c 100644 --- a/.config/nvim/plugin/packer_compiled.lua +++ b/.config/nvim/plugin/packer_compiled.lua @@ -84,6 +84,11 @@ _G.packer_plugins = { path = "/home/saumit/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, + ["nvim-lastplace"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-lastplace", + url = "https://github.com/ethanholz/nvim-lastplace" + }, ["nvim-treesitter"] = { loaded = true, path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-treesitter", diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 27b294c..e3b4ddf 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -13,7 +13,6 @@ alias \ r='ranger' \ sr='sudo ranger' \ ncmpcpp='ncmpcpp -b .config/ncmpcpp/keybindings' \ - sp='spotify' \ jds='export _JAVA_AWT_WM_NONREPARENTING=1' \ jd='jdownloader' \ yt='ytfzf -t' \ |