To leverage LSP auto-completions and other functionalities, after you open a
file in Neovim, run :MasonInstall <server> to use
mason installation feature.
Use Tab to list available servers.
cargo install selene # if you want to use selene instead of luacheck
brew install hadolint # if you want to lint dockerfiles
pip install vim-vint # for vim linting# install llvm and clang_format for clang stuff
npm install -g @fsouza/prettierd # if you want to use prettierd
pip install yapf flake8 black # for python stuff# if you want to use the markdown thingy
brew install vale markdownlint-cli
cp -r ~/.config/lvim/.vale ~/.config/vale
# fix the address inside .vale.ini
cp ~/.config/lvim/vale_config.ini ~/.vale.ini
# if you want the latex stuff# brew install --cask mactex-no-gui # for mac# or install zathura and chktex on linux
In case you want a better tex support in mac, check
this out
if you want the custom gostructhelper, first get the pkg:
cd /tmp
git clone https://github.com/vanhtuan0409/gostructhelper.git
cd gostructhelper/cmds/gostructhelper
go build -o /usr/local/bin/gostructhelper && chmod 0755 /usr/local/bin/gostructhelper
Collaborative Editing
Collaborative Editing(🔎 Click to expand/collapse)
The default is to serve localhost only, on port 8080. For a more advanced (remote server) overview see Deploy a server
Server side
:InstantStartServer [host] [port] : Start the server using
:InstantStartSingle [host] [port] : This only shares the current buffer.
:InstantStartSession [host] [port] :This shares all opened (and newly opened) buffers with the other clients
Client side
let g:instant_username="sth" : Set your preferred username.
:InstantJoinSingle [host] [port] : Use this command if another client already initiated a single share.
:InstantJoinSession [host] [port] : Use this command if another client already initiated a session share
Screenshot
Screenshots(🔎 Click to expand/collapse)
BufferLine
StatusLine
Dashboard
lsp_signature
Tabnine
Lang Server
completion
diagnostics using gl
code_actions using ga
code_lens and inlay_hints when supported by lang server
After the recent lunarvim and your lvim update, I got the following error messages.
This still happens even with reinstall.
Error detected while processing /home/venson/.config/lvim/after/plugin/highlights.vim:
line 39:
E5108: Error executing lua /home/venson/.config/lvim/lua/user/theme.lua:333: attempt to index field 'fancy_teles
cope' (a nil value)
stack traceback:
/home/venson/.config/lvim/lua/user/theme.lua:333: in function 'telescope_theme'
[string ":lua"]:1: in main chunk
11:04:27 [WARN ] lvim: "Invalid configuration: vim/_meta.lua:170: E474: Invalid argument" file="init.lua", line=
105
I trie to comment out the fancy_telescope part in ~/.config/lvim/lua/user/theme.lua, which solve the error message, but the warn message remains.
I am facing some troubles with formatters. Eg, I am working in a typescript project that has an eslint configuration in .eslintrc. However, when I am formatting the file, it seems that the language servier (tsserver in my case) will be used for formatting which applies different formatting rules compared when to running eslint --fix manually - the later takes the correct configuration.
Do you have any advice on how to fix this behavior?
hi abz,
I tried to add a if statement for the themes, I struggle with understanding the Lua code ;D
can we have a lvim.builtin.timebasedTheme = true
it would be a good solution for #59
I like the timebased themes but sometimes I work outside and I need a bright theme
Sorry if this sounds stupid 😂
but how did you make gitsigns "Stage Hunk" keymap (<leader>gs) available in visual mode?
I've searched for stage, gitsigns and which-key but couldn't find anything. I've looked at this keybinding.lua file but couldn't find anything about this as well.
this works in visual mode, but unfortunately this makes the keymap in normal mode disappear, and which-key doesn't support specifying multiple mode at the moment I think? (issue)
I faced this issue where on .ts files the hover key does not work and displays man.vim: no manual entry for .... I found out that it came from add_lsp_buffer_keybindings. I did try to put it on the tsserver.lua file
Having a problem with jdtls. Using archLinux, zsh, neovim nighly, lvim rolling and your config (all up2date). jdt.ls is attached and working but some lsp/null-ls features arent working. CheckHealth is fine. I did :LspInstall jdtls. No reference-checks/doc-signatures/auto-imports and so on. However some lsp features are working.
I get "full" jdtls functionality using ChristianChiarulli nvim(from scratch) config.
When open a java file i get this lsp error: .../vim/lsp/rpc.lua:420 "rpc" "java" "stderr" "Error: Unable to access jarfile \n"
After upgrading to the latest version, it seems that configurations in ./after/ftplugin aren't working anymore.
For example, I have a file ./after/ftplugin/yaml.vim with the following content:
It seems that in my setup some icons are missing. The link to recommended fonts in the README.md ends up in a nirvana :) Could you help me to figure out what I am missing here? I've installed nerdfonts and firacode already.
Recently i was editing a html file, and trying to use html snippets, but, i've got some issues using them. When typing for example h1 and just after, pressing enter, works fine, but, when i type h2 inside h1 and then press enter, this issue occurs:
I don't know if this is a snippets plugin problem, or a configuration file problem.
E5108: Error executing lua ...ack/packer/opt/persistence.nvim/lua/persistence/init.lua:39: Vim(autocmd):E216: No such group or event:
Persistence
stack traceback:
[C]: in function 'cmd'
...ack/packer/opt/persistence.nvim/lua/persistence/init.lua:39: in function 'stop'
[string ":lua"]:1: in main chunk
dunno if its related to the config or to lunarvim. I wish lunarvim will start throw errormessages about missing linter like hadolint only when I open a dockerfile and not on start of lunarvim.
I'm playing around with Lorri
When I try to edit a C source file, if it is made of thousands of lines, then code navigation and LSP autocomplete is extremely slow.
What I noticed is that, if I do this to the buffer:
:setfiletype=txt
:setsyntax=c
then the LSP remains active with autocomplete, diagnostics etc. plus basic syntax highlight, but everything is much faster.
Probably this is due to some plugin or autocommand which supposedly get activated when I open a C file, with subsequent clangd LSP server launch.
Question is, how could I exactly identify the components slowing down everything, eventually disabling them, without having every time to repeat the two commands described above?
Some notes:
Disabling the LSP clangd, still leads to code editing slowness.
TSBufDisable highlight & indent seems to improve speed.
Error detected while processing function copilot#Command[19]..5[13]..<SNR>41_JsonBody:
line 3:
E474: Attempt to decode a blank string
E474: Failed to parse
hi,
text behind the whichkey menu is visible. its related to this config. i tested it with lunarvim base config and nvchad and its not happening.. does anyone have a idea what it could be? i disabled some plugins but I didn't find a solution yet
here are some screenshots. LunarVim/LunarVim#2641
I have just pulled your newest changes. Now I get the error: user/builtin.lua:33: attempt to index field 'options' (a nil value). It seems that optionsin lvim.builtin.bufferline.options.diagnostics_indicator does not exist anymore at the time of loading. I have reset the cache and also synced packer without success.
Is there sth else I would need to do to make it work again?
Thanks!
I'm wondering if such a noob-like question is allowed but I really like your config @abzcoding and wondering if you can help me with this error I got.
Error executing vim.schedule lua callback: ...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:14: The coroutine failed
with this message: ...e/pack/packer/start/null-ls.nvim/lua/null-ls/helpers.lua:152: command eslint_d is not executable (make s
ure it's installed and on your $PATH)
I've been looking anywhere to find where the path to the problem at, but can't figure out exactly where.
Thanks
While trying to isolate why Packer rollbacks to a snapshot, 10 - 20 seconds after using PackerSync, i noticed the follow error when running LvimInfo.
Not sure if its more related to Lunarvim, if so i'll close here and repost.
E5108: Error executing lua vim/shared.lua:0: t: expected table, got nil
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
vim/shared.lua: in function <vim/shared.lua:0>
vim/shared.lua: in function 'tbl_filter'
...elliot/.local/share/lunarvim/lvim/lua/lvim/core/info.lua:105: in function 'make_override_info'
...elliot/.local/share/lunarvim/lvim/lua/lvim/core/info.lua:153: in function 'toggle_popup'
[string ":lua"]:1: in main chunk
Seems my primary issue is related to the previous ones posted by Venson.
Using version:
NVIM v0.7.0-dev+1292-ge9b53f3fb
Build type: Release
LuaJIT 2.1.0-beta3
After pressing the keys "$" and "{" to use template strings on my javascript project, the following error appears:
I'm using lunarvim rolling and neovim dev branch
Have you figured out to get rust-analyzer and rust_tools functioning correctly in lunarvim?
I've gone sideways trying to figure out how to get the [shift-k] hover definition of functions and inlay hints working from these two addons to facilitate learning Rust, but no matter what i've tried it's not getting anywhere. I tried pulling your lvim config to see if it worked in that, but alas no dice.
After syncing my setup in https://github.com/soerenmartius/lvim with your latest changes, none of the configurations seem to load anymore (eg custom keybindings won't work).
First thank you for your nice config 🚀
When i open Lazygit from neovim (toggleterm) when i try to scroll down with j the cursor does move only after i release it. This does not happen when i scroll up with k.
I do not encounter this bug in regular Lazygit (not inside toggleterm)
When opening js or ts file, I received the following Error:
Error executing vim.schedule lua callback: /Users/huangwenxuan/.config/lvim/lua/user/tss.lua:17: attempt to call field 'map' (a nil value)
stack traceback:
/Users/huangwenxuan/.config/lvim/lua/user/tss.lua:17: in function 'buf_map'
/Users/huangwenxuan/.config/lvim/lua/user/tss.lua:127: in function '____on_attach_result_3'
.../site/pack/packer/opt/typescript.nvim/lua/typescript.lua:2827: in function '_on_attach'
...ck/packer/start/nvim-lspconfig/lua/lspconfig/configs.lua:271: in function '_setup_buffer'
...ck/packer/start/nvim-lspconfig/lua/lspconfig/configs.lua:181: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
After commenting out M.buf_map lines , no error any more
Experiencing the following error message with NVIM v0.6.0-dev+627-gb5b025f6a and LuaJIT 2.1.0-beta3.
This is an issue on my local machine with just your code, not my own repository. Attempted to grep and find the files that are mentioned, but no results. Any idea what might cause this error?
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
12:02:48 [WARN ] lvim: 'Invalid configuration: vim/shared.lua:247: invalid "behavior": table: 0x7fdb01d3d758' file="init.lua", line=
80
Highlight group 'Normal' has no background highlight.
Please provide an RGB hex value or highlight group with a background value for 'background_colour' option
Defaulting to #000000
Press ENTER or type command to continue
I've been trying to figure out why pcre2 fails every single time i update with PackerSync. Have you encountered this issue before?
✗ Failed to install pcre2
Cloning into 'lua-pcre2'...
Note: switching to 'ae3fdf9155db6981ff9a60339739303c0661dab7'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Submodule 'deps/lauxhlib' (https://github.com/mah0x211/lauxhlib.git) registered for path 'deps/lauxhlib'
Cloning into '/private/var/folders/p0/ky08kpq12hb7nz12bwk6tlhm0000gp/T/luarocks_pcre2-0.2.0-1-X9kWtb/lua-pcre2/deps/lauxhlib'...
Error: Could not find header file for LIBPCRE2
No file pcre2.h in /usr/include
No file pcre2.h in /include
You may have to install LIBPCRE2 in your system and/or pass LIBPCRE2_DIR or LIBPCRE2_INCDIR to the luarocks command.
Example: luarocks install pcre2 LIBPCRE2_DIR=/usr/local
Press 'q' to quit
Press '<CR>' to show more info
Press 'd' to show the diff
Press 'r' to revert an update
Press 'R' to retry failed operations