A collection of personal and technical notes.
Rename a variable and all of its usage in a project.
Move the cursor on the variable name you want to be renamed, type the new name, then hit enter.
<leader>cr
Create a new file.
%
Explore the current directory.
:Ex
Display the absolute path of the current file.
:echo expand('%:p')
Scroll the current location of the cursor to the top of the screen.
zt
Scroll the current location of the cursor to the center of the screen.
zz
Scroll the current location of the cursor to the bottom of the screen.
zb
Check the currently loaded LSP configuration of an active file.
:LspInfo
Reloads the currently open Lua file.
:luafile %
Display the hover documentation:
Shift + k
Opens the available Packer-related options.
:Packer + <TAB>
Opens the available Mason-related options.
:Mason + <TAB>
Opens the Mason modal of available LSPs, DAPs, linters, and formatters.
:Mason
E138: Cannot write ShaDa file
errorSolution:
Delete the affected (corrupted) ShaDa file, then restartnvim
.
Go to~/.local/state/nvim/shada/
directory,
then delete the file.