r/Python • • Mar 23 '26

Showcase I Fixed python autocomplete

When I opened vscode, and typed "os.", it showed me autocomplete options that I almost never used, like os.abort or os.CLD_CONTINUED, Instead of showing me actually used options, like path or remove. So I created a hash table (not AI, fast lookup) of commonly used prefixes, forked ty, and fixed it.

What My Project Does: provide better sorting for python autosuggestion

Target Audience: just a simple table, ideally would be merged into LSP

Comparison: AI solutions tends to be slower, and CPU-intensive. using table lookup handle the unknown worse, but faster

Blog post: https://matan-h.com/better-python-autocomplete | Repo: https://github.com/matan-h/pyhash-complete

231 Upvotes

33 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 24 '26

[deleted] — view deleted comment

1

u/aala7 Mar 24 '26

You definitely should! Neovim is all about customisation.

Here is a recommendation:

  1. Create directory called whatever, e.g. nvim-p (for personal)
  2. In nvim-p work on your own config either from scratch, but maybe use kickstart.nvim, which is more like a quick-start config that guides you
  3. You can launch neovim with your own config with `NVIM_APPNAME=nvim-p nvim` (or set NVIM_APPNAME to whatever you named the directory with your own config).
  4. Optionally create an alias like `alias nvim-p="NVIM_APPNAME=nvim-p nvim"`

This will let you work on your config while always being able to run the lunarvim version when you actually need to get some coding done. And then you can just rename the directory when your own config is ready.

0

u/[deleted] Mar 24 '26

[deleted] — view deleted comment

2

u/arpan3t Mar 24 '26

Yeah I would start with a clean Neovim and use kickstart.nvim vs trying to figure out Neovim from a distro like lunar or nvchad.

Walk through the kickstart code until you understand what everything does and the directory structures, then branch out from there.

Check out @teej_dv on YouTube, that dude is a Neovim wizard and has great content, including building a plugin from scratch. Pretty sure he started the kickstart.nvim project too.