Neovim config for Typescript, Lua plugin development, always WIP
I have curated this neovim config for about two years now. I use it for Angular, NestJS, and now Vue.
If you have any questions about how something works, don't hesitate to open an issue or send me a message!
- Uses
K
to display different hover implementations depending on the content
M.hover_handler = function()
local winid = require("ufo").peekFoldedLinesUnderCursor()
if winid then
return
end
local ft = bo.filetype
if tbl_contains({ "vim", "help" }, ft) then
cmd("silent! h " .. fn.expand("<cword>"))
elseif M.treesitter_is_css_class_under_cursor() then
cmd("TWValues")
elseif tbl_contains({ "man" }, ft) then
cmd("silent! Man " .. fn.expand("<cword>"))
elseif is_diag_for_cur_pos() then
vim.diagnostic.open_float()
else
vim.lsp.buf.hover()
end
end
- Create
cmp
source forprimeflex
<leader>o
should unfold if fold present, otherwise openoil
- find out what is setting foldlevel to 0