.config
indent-o-matic
.config | indent-o-matic | |
---|---|---|
13 | 6 | |
19 | 164 | |
- | - | |
9.3 | 3.1 | |
8 days ago | 11 months ago | |
Lua | Lua | |
The Unlicense | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
.config
-
Can anyone recommend a good github dotfiles repos for neovim that uses LazyVim as it's plugin manager?
I've done my best to keep my config simple and sane: https://github.com/heygarrett/.config/tree/main/nvim
-
"set noet" ignored in python files
One option the docs don't list is using an autocommand, which is what I do because I overrule the indentation options for all file types.
-
Trouble detecting shiftwidth correctly
I use a combination of guess-indent.nvim and :h listchars. Here's how I use them together in my config.
-
nvim: coq vs cmp
I even wrote my own autocmd for auto-completion, which was a lot of fun and helped me learn a lot about Neovim. Together with nvim-snippy it meets all of my needs (so far).
-
Show me your statusline! Big plus if you wrote it yourself :)
I'm late to the party, but I did configure my statusline without a plugin: - Screenshot - Config
-
What completion method should i try first
I added an autocmd to make it automatic.
-
It’s worth it to learn how a feature works before installing a plugin claiming to make that feature better.
I learned a lot, and I created my own automated workflow for sessions that I’m quite happy about. I think the best part is it may not cover every use case I encounter, which means I get to keep learning and I get to become more familiar with a tool I use daily.
-
Here’s a function to grab the name of the current git branch with Lua
I use this in my custom statusline config, which you can see here.
-
Is there an equivalent to :setlocal {option}< using Lua?
This is how I currently configure my indentation. The autocmd overrides anything set by the ftplugin files during startup, and that's the easiest method I've found keep my preferences across every file type.
-
Tab in vim always shifts by 2 spaces for c and c++ files.
I think the built-in filetype plugin files are sourced after your vimrc. I got around this by adding an autocmd to re-set my indentation preferences after the ftplugins are loaded.
indent-o-matic
-
Which vim plugins do not have a lua equivalent yet?
there is indent-o-matic
-
How have you configured indentation?
I use indent-o-matic, along with these defaults:
-
How to adapt indent to the current file ?
I use https://github.com/Darazaki/indent-o-matic currently and set it with a keymap when that fails.
-
Is there an equivalent to :setlocal {option}< using Lua?
I do use a plugin to match the indentation of existing files (indent-o-matic), and that overrides my own indentation preferences; matching the indentation style of an existing codebase is more important than my own preferences or a language style guide. But if I'm starting a new project I stick to tabs for accessibility (unless it would cause whitespace syntax problems).
-
guess-indent — Automatic indentation style detection plugin for neovim
How does it compare to IndentOMatic?
- indent-o-matic: Dumb automatic fast indentation detection for Neovim written in Lua
What are some alternatives?
mini.nvim - Library of 35+ independent Lua modules improving overall Neovim (version 0.7 and higher) experience with minimal effort
trouble.nvim - 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
nvim - Neovim configuration
vim-sleuth - sleuth.vim: Heuristically set buffer options
nvim-lazyman - Neovim configuration manager and Lazy/Lua/Mason based Neovim config. Manage multiple Neovim configurations with the lazyman command. ☕
neorg - Modernity meets insane extensibility. The future of organizing your life in Neovim.
wiirdle - Wordle clone for the Wii, powered by WiiLÖVE
nvim-dap - Debug Adapter Protocol client implementation for Neovim
nvim-config - Generalized and Personalized
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
white-chocolate.nvim - An opinionated bright, redshift-friendly, modular and vibrant theme for neovim that includes a colorscheme. It strives to be: simple, light, functional and familiar.
guess-indent.nvim - Automatic indentation style detection for Neovim