Commit Graph

342 Commits (main)

Author SHA1 Message Date
olimorris 6140a4703a chore: update README.md
Thanks to @avently for the neat Telescope callback
2022-07-04 09:14:18 +01:00
olimorris 0ad729ee38 fix: #15 callbacks being incorrectly detected 2022-06-30 19:53:28 +01:00
olimorris 8e1da8a3d6 refactor: #7 remove branch in telescope results
For users who not use git branching (majority) this is redundant. For users who have lots of '_' in their file path, this becomes messy. Cleaner to just remove it as the user can determine the branch from the filename anyway
2022-06-30 17:49:01 +01:00
olimorris 6c21af37d0 chore: formattig 2022-06-25 22:54:44 +01:00
olimorris a51112c539 refactor: telescope use vim event loop to load 2022-06-25 22:48:45 +01:00
olimorris 33b76850d6 chore: update gitignore 2022-06-25 22:48:15 +01:00
olimorris 4e5b8b4a10 refactor: move load session to utils 2022-06-25 22:48:09 +01:00
olimorris 0c3c133a7f fix: #14 index a nil value while calling Telescope persisted 2022-06-25 14:45:35 +01:00
olimorris 2bbbc3b16d chore: rename tests 2022-06-25 14:45:13 +01:00
olimorris 3a5f182086 refactor: improved git branching 2022-06-25 14:07:00 +01:00
olimorris d093a835ef fix: #13 get last session saved 2022-06-25 13:06:51 +01:00
olimorris 2699f4b0fe chore: update tests 2022-06-25 13:06:31 +01:00
olimorris bf27016643 fix: #12 shift autoloading to the nvim event loop
A big shoutout to @simonmclean for this pull request. Previously we autoloaded a session file as soon as Neovim opened. The problem with this is that key plugins like LSP and Treesitter may not have been initialised. This would lead to syntax highlighting issues or LSPs not attaching to buffers in the session. Pushing this to Neovim's event loop via vim.schedule allows us to sensibly load the session after these key plugins. Fixing the tests was a little cumbersome as we needed to use plenary's async library but once figured out, we have some lovely robust async tests
2022-06-07 12:55:20 -07:00
olimorris 66f4405794 fix: vim.schedule causing issues with autoloading 2022-06-07 09:43:51 -07:00
Oli M d9346bf310
fix: use vim.schedule to load session
Auto loading a session often causes weird treesitter and LSP issues. Using him schedule resolves this
2022-06-06 10:30:11 -07:00
Simon McLean 473c90bbb6
Wrap auto load in vim.schedule
I'm experiencing a bug whereby if I enable autoloading, I don't get any syntax highlighting on startup (until I trigger it with `:e` for example). I had the same issue with `persistence.nvim` (I made an auto command to get the same functionality). For both plugins, wrapping the call to `load` in `vim.schedule` solved the problem.

I don't really know enough about the inner workings of Neovim to explain this though.
2022-06-06 17:38:23 +01:00
olimorris 040cf43524 feat(telescope): #7 delete session files 2022-05-13 10:48:13 +01:00
olimorris db46d40d45 fix(telescope): #7 telescope layout with functions
Props to @ranebrown for the solution. This error occured when a user has specified a function for the width value in their telescope layout_config
2022-05-13 09:39:28 +01:00
olimorris 0c392ddb9f feat(telescope): #7 start adding delete feature 2022-05-12 20:18:08 +01:00
olimorris b778a4ebc4 feat: #11 after_source callback 2022-05-05 11:41:57 +01:00
olimorris 13dacbc880 fix: #11 lsp and autoload issue 2022-05-04 16:33:26 +01:00
olimorris 32610c4de6 fix: #11 lsp not working with autoload 2022-05-03 21:51:16 +01:00
olimorris f5b3d04597 chore: update README.md 2022-05-03 21:50:58 +01:00
olimorris 45e02cd474 fix: telescope callbacks in README.md 2022-04-25 12:38:14 +01:00
olimorris d4c0ba339f fix: telescope extension not loading after close 2022-04-24 22:41:40 +01:00
olimorris 5b3525ad5e refactor: #7 improve telescope support 2022-04-24 12:58:11 +01:00
olimorris baa9c73818 chore: update README.md 2022-04-22 14:14:16 +01:00
olimorris 2345ac0682 refactor: change config option dir to save_dir 2022-04-22 12:45:30 +01:00
olimorris 5ad5f88e4b feat: custom autocmd for saving a session 2022-04-22 12:37:27 +01:00
olimorris ec388c54ee chore: update README.md 2022-04-22 12:15:41 +01:00
olimorris 637e1a5d8f fix: #7 do not stop persisted after load 2022-04-20 09:25:58 +01:00
olimorris b0c4861e23 chore: #5 cleanup README.md 2022-04-20 09:22:19 +01:00
olimorris 48ecaa7c6e feat: #5 improve auto save/load pattern match 2022-04-20 09:19:56 +01:00
olimorris 4e3310f6b8 fix: testing default config 2022-04-20 09:08:03 +01:00
olimorris f33855997e fix: README.md for using telescope extension 2022-04-19 22:29:29 +01:00
olimorris fdaf9e08b4 chore: update README.md for toc links 2022-04-19 22:24:08 +01:00
olimorris a156dd33c3 feat: #7 initial Telescope support 2022-04-19 22:21:06 +01:00
olimorris b6201178ff feat: improve README.md 2022-04-19 22:20:39 +01:00
olimorris ba5f0ab091 fix: #8 autoload when neovim opened with arguments 2022-04-19 13:29:07 +01:00
olimorris 4863f67101 fix: double running of tests 2022-04-07 00:26:14 +01:00
olimorris f2478ae42d chore: add git branch tests 2022-04-07 00:23:28 +01:00
olimorris 7f88f8a64c chore: add ignored_dirs test 2022-04-06 23:29:06 +01:00
olimorris f886f9a2ec chore: improve test coverage 2022-04-06 23:23:02 +01:00
olimorris 23151e4db6 fix: #6 error getting correct git branch 2022-04-05 22:48:02 +01:00
olimorris 45d944c8ec chore: update tests 2022-04-04 23:22:23 +01:00
olimorris 9c3cc1ff59 chore: update README.md 2022-04-04 23:03:24 +01:00
olimorris 6cefecd2bb fix: #4 use vim.o.sessionoptions 2022-04-04 22:59:36 +01:00
olimorris 38cf66b8f8 chore: clean up README.md and test spec 2022-03-12 08:46:54 +00:00
olimorris 254663b3ce test: add additional tests 2022-03-08 20:23:16 +00:00
olimorris 1c465857f1 chore: update README.md 2022-03-08 20:23:00 +00:00