.config | dot | |
---|---|---|
13 | 17 | |
19 | 677 | |
- | - | |
9.3 | 8.4 | |
13 days ago | about 2 months ago | |
Lua | Lua | |
The Unlicense | Apache License 2.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.
.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.
dot
-
I love this bastard
I add more stuff on top of LazyVim. See my dots here https://github.com/folke/dot/tree/master/nvim
-
Some useful software customizations for my NyPhy Air60 (linux)
There's some customizations I did with keyd that could be useful for others. See here
-
tsserver launching multiple times
I found myself with the same problem and found a solution in LazyVim's maintainer's dotfiles. You have to configure `tsserver` like this, so it doesn't spawn multiple instances. Take a look [here](https://github.com/folke/dot/commit/aef729a076970e770ed84d817419551e82951d2c) to include it in your own configuration.
-
mini.hipatterns - highlight patterns in text
For anyone interested, I've added preliminary tailwindcss support in my dots here
- [Neovim] Yalc: encore une autre configuration paresseuse.nvim
-
Can anyone recommend a good github dotfiles repos for neovim that uses LazyVim as it's plugin manager?
Take a peek a the dotfiles of the dev who made lazy.nvim folke's dotfiles
-
Setting up copilot-cmp with Lazynvim
You can see here how I added copilot to my own config (with LazyVim)
-
possibility of dedicated sign-type columns in signcolumn?
-- @ref https://github.com/folke/dot/blob/master/config/nvim/lua/util/status.lua (modified) local M = {} _G.Status = M ---@return {name:string, text:string, texthl:string}[] function M.get_signs() local buf = vim.api.nvim_win_get_buf(vim.g.statusline_winid) return vim.tbl_map(function(sign) return vim.fn.sign_getdefined(sign.name)[1] end, vim.fn.sign_getplaced(buf, { group = "*", lnum = vim.v.lnum })[1].signs) end function M.column() local diagnostic_sign, git_sign for _, s in ipairs(M.get_signs()) do if s.name:find("GitSign") then git_sign = s elseif s.name:find("Diagnostic") then diagnostic_sign = s end end local nu = " " local number = vim.api.nvim_win_get_option(vim.g.statusline_winid, "number") if number and vim.wo.relativenumber and vim.v.virtnum == 0 then nu = vim.v.relnum == 0 and vim.v.lnum or vim.v.relnum end local git_column = git_sign and ("%#" .. git_sign.texthl .. "#" .. git_sign.text .. "%*") or " " -- two spaces necessary to avoid jumping local diagnostic_column = diagnostic_sign and ("%#" .. diagnostic_sign.texthl .. "#" .. diagnostic_sign.text .. "%*") or " " -- right-aligned number column (thanks to the %=) -- %= @ref :h statusline "Separation point between alignment sections. Each section will be separated by an equal number of spaces" local number_column = "%=" .. nu local fold_column = "%C" local columns = { git_column, diagnostic_column, number_column, " ", fold_column, " ", } return table.concat(columns, "") end if vim.fn.has("nvim-0.9.0") == 1 then vim.opt.statuscolumn = [[%!v:lua.Status.column()]] end return M
-
YALC: yet another lazy.nvim config!
I spent two weekends searching online repos about how to migrate from packer.nvim to lazy.nvim, and finally, I'm done! Big thanks to folke/lazy.nvim, folke/dot, and LazyVim!
-
Tradeoffs of using home manager for neovim plugins
I’m very happy with the new plugin manager lazy.nvim: 1. Powerful control over lazy loading plugins. Example: lazy load when command is run, or on certain events in neovim 2. I like how I’m able to layout the config. Each plugin I have has their own lua file for config (example from someone else dotfiles)
What are some alternatives?
mini.nvim - Library of 35+ independent Lua modules improving overall Neovim (version 0.7 and higher) experience with minimal effort
stackline - Visualize yabai window stacks on macOS. Works with yabai & hammerspoon.
nvim-lazyman - Neovim configuration manager and Lazy/Lua/Mason based Neovim config. Manage multiple Neovim configurations with the lazyman command. ☕
dotfiles - ~ 🍭 ~
nvim - Neovim configuration
LazyVim - Neovim config for the lazy
nvim-config - Generalized and Personalized
config_manager - My configuration files and tools
wiirdle - Wordle clone for the Wii, powered by WiiLÖVE
dotfiles - vim, zsh, git, homebrew, neovim - my whole world
indent-o-matic - Dumb automatic fast indentation detection for Neovim written in Lua
dotfiles - 🗃️ Sensible Defaults of My Computer