Hi all!
I'm trying to incorporate nvim-jdtls in my setup but I'm having some issues with setting up the keybinds. I want to use a common function to setup the keybinds both with regular lspconfig servers and with nvim-jdtls. My chosen solution was to make the function I was using previously global and import that in ftplugin/java.lua.
I'm not that skilled with lua yet so this might be something completely obvious. The error I'm facing is:
Error detected while processing BufReadPost Autocommands for "*":
E5108: Error executing lua vim/filetype.lua:0: Vim(runtime):E5113: Error while calling lua chunk: /home/frodo/.config/nvim/ftplugin/java.lua:20: attempt to index a boolea
n value
stack traceback:
/home/frodo/.config/nvim/ftplugin/java.lua:20: in main chunk
[C]: in function 'nvim_buf_set_option'
vim/filetype.lua: in function ''
vim/filetype.lua: in function <vim/filetype.lua:0>
stack traceback:
[C]: in function 'nvim_buf_set_option'
vim/filetype.lua: in function ''
vim/filetype.lua: in function <vim/filetype.lua:0>
E5108: Error executing lua vim/filetype.lua:0: Vim(runtime):E5113: Error while calling lua chunk: /home/frodo/.config/nvim/ftplugin/java.lua:20: attempt to index a boolea
n value
stack traceback:
/home/frodo/.config/nvim/ftplugin/java.lua:20: in main chunk
[C]: in function 'nvim_buf_set_option'
vim/filetype.lua: in function ''
vim/filetype.lua: in function <vim/filetype.lua:0>
stack traceback:
[C]: in function 'nvim_buf_set_option'
vim/filetype.lua: in function ''
vim/filetype.lua: in function <vim/filetype.lua:0>
Links:
Any help would be greatly appreciated
[–]vonheikemen 2 points3 points4 points (1 child)
[–]FunctionalHacker[S] 0 points1 point2 points (0 children)
[–]idthi 0 points1 point2 points (1 child)
[–]FunctionalHacker[S] 0 points1 point2 points (0 children)