luacheck
dirbuf.nvim
Our great sponsors
luacheck | dirbuf.nvim | |
---|---|---|
14 | 23 | |
1,864 | 418 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | over 1 year ago | |
Lua | Lua | |
MIT License | GNU Affero General Public License v3.0 |
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.
luacheck
-
strict.lua
Not directly related, but luacheck can also help with this.
-
Help me reload my lua config! :)
Using something like https://github.com/mpeterv/luacheck might be helpful too. Will check all the files in a directory and will let you know which one might be problematic.
-
Lsp: Execute callback after server initialized
I'm trying to setup luacheck (via null-ls) to run alongside sumneko-lua (via nvim-lspconfig).
-
A History of Lua
Most of the time nothing is used. The thing is that iterating is so quick, that you find the problems really fast.
Although, I've been using luacheck https://github.com/mpeterv/luacheck. It is quite nice, but you have to write down the global variables by hand on the config file.
-
Writing a neovim plugin. Please send criticisms to make the code better
Check out luacheck. It can help spot typos or mistakes you've made and warn against anti-patterns. I'd honestly only look into setting it up locally because there's no benefit to putting it in a CI pipeline unless you have one for another reason IMO. This should be all the config you need:
-
Kind of define in lua
You are probably right, but luacheck is well aware of which global variables are built-in and it has special comments, such as -- no global or --ignore in case you very want to overwrite them.
-
Is it ok to name a function for example "function self:Example() end" or is it a big mistake? And how to find (directory) location of a function?
Calling your function self is as much bad practice as calling it print. Use luacheck to avoid such mistakes.
-
Please explain versions of Lua (and the book) to the new user/skeptic
Any Lua program over a few kilobytes should use luacheck; if you want to avoid going crazy it's non-negotiable: https://github.com/mpeterv/luacheck You're right that it's a design mistake, but luacheck makes it relatively easy to work around.
-
Ver 5 will be out soon, and I have a question.Is there any advantage to using init.lua?
advantage: - you can write init.lua using LSP - autoformat https://github.com/Koihik/LuaFormatter - Lint https://github.com/mpeterv/luacheck
dirbuf.nvim
-
People who swear by Oil.nvim , why?
For me I think it’s the best at what it does (with mini.files coming in a close second. It would probably be my first, but I prefer the whole buffer approach over the floating popups.) I’ve tried dirbuf.nvim as well, but I didn’t like that I couldn’t copy/move files.
-
Workflow with nvim
Big fan of https://github.com/elihunter173/dirbuf.nvim
-
What are the plugins you consider necessary to have a great neovim experience?
Shout-out to dirbuf.nvim as it is one of my favorite plugins I cannot live without, but I see it rarely mentioned. It allows you to do file management by editing a file, so you can do anything you would do to edit any regular file. There are no new keymaps to learn, you just use any regular motion, :s, :g, or anything you can think of. Great for bulk renaming!
-
My thoughts about editors in 2022
While I do use file managers often (ranger and dolphin are pretty nice overall), within Neovim my file management is fairly reduced. I use dirbuf when I need to browse through files (for refactors or something), and since it's dired-like its a lot more built into the "vim-as-a-language" mindset. Not to say I do a whole lot in it, but it is quicker than having to do shell stuff within Neovim. I think file-tree plugins tend to just miss the concept for me, as I never found them to be anything more than just "look and see" due to disconnect from the aforementioned "vim-as-a-language"
-
What file explorer do you use?
https://github.com/elihunter173/dirbuf.nvim, it's basically netrw done right.
-
netwr like file explorer for neovim?
https://github.com/elihunter173/dirbuf.nvim might just be the thing. In terms of navigating it's as minimal as it can be:
-
What file manager do you use?
I use fish shell with z plugin to quickly jump to directories and nnn file manager mainly to select files for deletion. I also use dirbuf plugin for neovim when working inside this editor.
-
neovim plugins that have improved your workflow
dirbuf.nvim!
-
Which file browser do you use ?
dirbuf mostly. Anything really advanced and I'll just open a new ranger session
What are some alternatives?
lua-language-server - A language server that offers Lua language support - programmed in Lua
StyLua - An opinionated Lua code formatter
LuaFormatter - Code formatter for Lua
vimv - Batch-rename files using Vim
nvim-tree.lua - A file explorer tree for neovim written in lua
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
vim-filebeagle - A VINE-spired (Vim Is Not Emacs) file system explorer.
NvChad - Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.
NvChad - An attempt to make neovim cli as functional as an IDE while being very beautiful , blazing fast. [Moved to: https://github.com/NvChad/NvChad]
vifm - Vifm is a file manager with curses interface, which provides Vim-like environment for managing objects within file systems, extended with some useful ideas from mutt.
lua-enumerable - A port of ruby's Enumerable module to Lua
nnn.nvim - File manager for Neovim powered by nnn.