Personal config used for NeoVim
Stephen Seo
354ed23291
nvim-lspconfig already has shortcuts to declaration/definition with "gd" and "gD", but in testing, they did not behave the same as the shortcuts defined in this commit for some reason. <leader>d and <leader>D are the shortcuts defined for definition/declaration (<leader> is by defalt back-slash "\"). Show floating diagnostic changed to <leader>F. |
||
---|---|---|
lsppack/pack/lsppackages/start | ||
pack/packages/start | ||
.gitmodules | ||
init.lua | ||
README.md |
My NeoVim Config
This is just a dump of my NVim config.
Things to note before using
Normal mode "q" (macro shortcut) is disabled by default. If you want to enable
use of this shortcut, you can disable it in the init.lua
config file.
Installing This Config
- Clone the repo into
$HOME/.config/nvim
. - Invoke
git submodule update --init --recursive --depth=1
in$HOME/.config/nvim
.
Updating This Config
git pull
orgit fetch
and merge.git submodule update --init --recursive
- Open nvim and invoke
:TSUpdate
to update tree-sitter.
Enabling LSP
In NeoVim, invoke use the :call loadlsp#loadlspall()
, then reload the current open
files with :e
<leader>l
(backslash and l) shortcut and LSP
functionality will be enabled for the currently open file. If you have more
than one buffer open, you may have to reopen them (with :e) for lsp plugins to
take effect.
loadlsp#loadlspall()
is a custom function that can be found
here.
Other Notes
You can view currently registered normal-mode shortcuts with :nmap
.
If you want to improve/support/file-an-issue about this config, send it to:
stephen AT seodisparate DOT com