u/brieucd

▲ 6 r/dotfiles+1 crossposts

Managing dot files with stow issue

Hi,

I am trying to manage my config and dot files with GNU stow. So I have Setup/ repo (my stow directory) with a shell/ package directory which contains my .bashrc and my .profile files. The .profile is the same as in /etc/skel (default one).

When stow the shell package in my $HOME, it creates a symlink ~/.profile pointing to $HOME/Setup/shell/.profile.

The issue is that when I logout and log back in, my PATH does not contain $HOME/bin and $HOME/.local/bin as it should.

It is as if the symlinked .profile wasn’t sourced.

Question: is it by design? Eg only source a regular file .profile at login (not symlink)

Thanks

reddit.com
u/brieucd — 1 day ago
▲ 7 r/neovim

Neovim (auto)completion config

Hi,

I can't for the life of me configure Neovim (v0.12.2) (auto)completion as I would like. Not sure I can do it with just the default options.

Here is what I would like...

No auto-completion by default.

Completion must be triggered manually using either CTRL-N/CTRL-P or CTRL-X CTRL-O.

On trigger, the popup appears, the first entry is selected (but not inserted) and we enter some sort of autocomplete mode:

- typing/deleting (non-special) characters updates the completion menu entries

- accepting the current selection with CTRL-Y inserts the completion, and leave Neovim in this "autocomplete" mode. Typing new characters (like chaining method calls), the popup menu may re-appears automatically.

- CTRL-E or CTRL-Z ends (auto)completion mode and returns Neovim into the initial manually triggered completion mode.

I have read the help pages about 'complete', 'completeopt', 'autocomplete' and so on and experimented with various combination of option values but can get close to the desired behavior. And vim.lsp.completion might also get in the mix...

So my question is: Is it possible to achieve this (or something close) with the default Neovim options (plus eventually a few Lua lines) or is it too complex and I am better off with a plugin like blink.cmp or similar ?

Thx

reddit.com
u/brieucd — 4 days ago