Skip to content

Instantly share code, notes, and snippets.

@benfrain
Last active October 27, 2024 12:00
Show Gist options
  • Save benfrain/97f2b91087121b2d4ba0dcc4202d252f to your computer and use it in GitHub Desktop.
Save benfrain/97f2b91087121b2d4ba0dcc4202d252f to your computer and use it in GitHub Desktop.
My Neovim Config (now moved to repo)
@benfrain
Copy link
Author

Switched out separate renamer plugin for dressing.

@the-mrd
Copy link

the-mrd commented May 18, 2022

Is nvim-colorizer still useful/used with nightfox? Don't they conflict or override?

@benfrain
Copy link
Author

benfrain commented May 19, 2022

Is nvim-colorizer still useful/used with nightfox? Don't they conflict or override?

They serve different purposes. colorizer just changes text/hex values in the code you are editing into the appropriate color background. night fox is the color theme.

@benfrain
Copy link
Author

LSP/null-ls updates to deal with neovim 0.8

@benfrain
Copy link
Author

benfrain commented Jul 7, 2022

made Ivy the default picker layout for all the Telescope pickers

@benfrain
Copy link
Author

benfrain commented Jul 13, 2022

swapped the surround plugin put it back to original tpope surround as new one seems flakey

@benfrain
Copy link
Author

Changed Telescope buffers so it shows Most Recently Used and ignores the current buffer from the list

@benfrain
Copy link
Author

Added indent blank line and used options so it only shows on active buffer

@benfrain
Copy link
Author

Noticed that the mapping map("n", "n", "nzz"), which I was using to move to the next search result but center it, was actually stopping the built it search result from displaying and updating. Removed those and similar mappings and removed some other mappings I never actually use like tab to move to next buffer.

@benfrain
Copy link
Author

benfrain commented Oct 7, 2022

Removed a few plugins I rarely use. removed stabilize as it is in Nightly core now as splitkeep option: https://www.reddit.com/r/neovim/comments/xx3fom/new_option_splitkeep_merged_into_master/

@benfrain
Copy link
Author

benfrain commented Nov 8, 2022

Added descriptions to mappings, added Which Key

@benfrain
Copy link
Author

Swapped to Lazy based config

@benfrain
Copy link
Author

Added mini.move for line bubbling and removed the existing mappings I had from mappings.lua

@benfrain
Copy link
Author

Added an LSP hover shortcut and a function to remove any popups when Esc is pressed.

@benfrain
Copy link
Author

Lualine has its own searchcount component now, so removed my own from Lualine config

@benfrain
Copy link
Author

benfrain commented Feb 2, 2023

Added comment box plugin and mappings, removed headlines plugin

@benfrain
Copy link
Author

Amended the LSP and mappings so that I only see diagnostic messages on a line with my mapping. Still get the gutter icon at all times.

@benfrain
Copy link
Author

Removing these:

treesitter-textobjects can go.
nvim-autopairs
num2str comment
kylechui surround
welle targets
famiu/bufdelete.nvim
indentblankline

And replacing with these:

mini.ai
mini.pairs
mini.surround
mini.comment
mini.move
mini.bracketed
mini.bufremove
mini.indentscope

@benfrain
Copy link
Author

benfrain commented Mar 6, 2023

Updated the Kanagawa config to deal with breaking changes there

@benfrain
Copy link
Author

Gone back to Kylechui for surround; prefer it.

@benfrain
Copy link
Author

Gone back to nvim-autopairs over mini.pairs; think it works better

@benfrain
Copy link
Author

Updated auto-session config and lualine usage

@benfrain
Copy link
Author

Adding navbuddy

@benfrain
Copy link
Author

removed null-ls/pounce, trying conform and flash

@benfrain
Copy link
Author

switching out mini.comment as it seemed to constantly fail with block comments in scss/ts files.

@benfrain
Copy link
Author

Currently unused plugin configs now prefixed with 'x-' so they are at the bottom

@benfrain
Copy link
Author

Going back to Pounce, find Flash does too much

@benfrain
Copy link
Author

Added symbols from NerdFonts to Which key as the default ones were not showing up

@benfrain
Copy link
Author

benfrain commented May 9, 2024

Updated the options.lua file to add a !silent to the autocmd which stopped this error: Error detected while processing CursorHold Autocommands for "*": E11: Invalid in command-line window; <CR> executes, CTRL-C quits: checktime | endif

Found the solution here: https://morgan.cugerone.com/blog/troubleshooting-vim-error-while-processing-cursorhold-autocommands-in-command-line-window/

Also learnt that when you are in cmd mode, you can press ctrl+f to get a window up that lets you enter commands like a normal buffer and press enter to execute. You can also then press ctrl+c to exit that mode, and again to exit cmd mode!

@benfrain
Copy link
Author

Few tweaks for Which Key v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment