catgoose / nvim

Neovim config for Typescript Angular/Vue and Lua plugin development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

catgoose neovim

Neovim config for Typescript, Lua plugin development, always WIP

About

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!

Screenshot

Heirline

image

Wilder

Search

image

Command

image

Help grep

ui.prompt

image

Results in quickfix

image

Hover handler

  • Uses K to display different hover implementations depending on the content

image

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

Todo

  • Create cmp source for primeflex
  • <leader>o should unfold if fold present, otherwise open oil
  • find out what is setting foldlevel to 0

About

Neovim config for Typescript Angular/Vue and Lua plugin development


Languages

Language:Lua 96.7%Language:Scheme 3.0%Language:Vim Script 0.3%