Closed Myzel394 closed 3 months ago
Can you share the whole config for Neovim? At least, this plugin does not change any option including 'number'
and LSP features.
@delphinus you can find my dotfiles for neovim here https://github.com/Myzel394/dotfiles/tree/main/nvim, telescope is located here https://github.com/Myzel394/dotfiles/blob/main/nvim/after/plugin/telescope.lua.
Strangely, this really only occurs when the frecency plugin is enabled. I don't know much about neovim, but could this be caused by the custom database frecency uses? Maybe it overwrites old config stuff? I tried setting a custom db_root
but was unable to do so successfully.
Can confirm this also breaks on NixOS
Your config is too complex to find out the problem. At first, you should create and try a minimal configs that contains telescope
, plenary
, telescope-frecency
only and confirm whether it work or not.
init.lua
to work with frecency~/.config/nvim-frecency/init.lua
.env NVIM_APPNAME=nvim-frecency nvim
in your shell.:Telescope frecency workspace=CWD
to confirm telescope-frecency works.$NVIM_APPNAME
variable is used not to pollute the env you're usually using. Neovim will use a different folders to store settings (See :h NVIM_APPNAME
).
If frecency works validly (probably does), then you should add your own configs gradually until strange behavior you've reported appears. If occurs, report here again.
For the present, we can regard your config, other plugins, stored configs (shada, for example) and the combination with them and frecency as the cause of your problems.
Ah, one point. What version of Neovim are you using? You should use the latest release version (v0.9.5) or HEAD to work frecency properly.
Please write further information for more investigation and open again.
Ah sorry I thought I already wrote you back. I'm using neovim 0.9.5
:
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
If frecency works validly (probably does), then you should add your own configs gradually until strange behavior you've reported appears. If occurs, report here again.
I'll try this
I'm facing a very strange bug where my neovim config seems to be misconfigured after loading this extension. Some opts such as
vim.o.number
are changed (unset for me) and LSP suddenly became very wanky.I'm loading frecency like any other plugin:
When I remove the
require("telescope").load_extension("frecency")
, everything is fine again. Strangely, onlyvim.o.number
and LSP seem to be wanky when loading frecency (or maybe I just haven't noticed anything else).