functions.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. -- TODO: check if this is needed at all with telescope-ui-select
  2. ncvim.config = {
  3. path = vim.fn.stdpath('config'),
  4. open = function()
  5. vim.cmd('cd ' .. ncvim.config.path)
  6. end
  7. }
  8. ncvim.lsp = {
  9. references = function()
  10. require('telescope.builtin').lsp_references()
  11. end,
  12. implementations = function()
  13. require('telescope.builtin').lsp_implementations()
  14. end,
  15. definitions = function()
  16. require('telescope.builtin').lsp_definitions()
  17. end,
  18. declaration = function()
  19. vim.lsp.buf.declaration()
  20. end,
  21. signature_help = function()
  22. vim.lsp.buf.signature_help()
  23. end,
  24. }
  25. ncvim.filetree = {
  26. toggle = function()
  27. print 'Filetree not configured'
  28. end,
  29. focus = function()
  30. print 'Filetree not configured'
  31. end,
  32. current_file = function()
  33. print 'Filetree not configured'
  34. end,
  35. restart = function()
  36. print 'Filetree not configured'
  37. end,
  38. }
  39. ncvim.db = {
  40. toggle = function()
  41. vim.cmd 'DBUIToggle'
  42. end,
  43. }
  44. ncvim.ui = {
  45. panels = {
  46. minimap = function()
  47. vim.cmd 'MinimapToggle'
  48. end,
  49. symbois = function()
  50. vim.cmd 'SymbolsOutline'
  51. end,
  52. todo = function()
  53. vim.cmd 'TodoLocList keywords=TODO,FIX,FIXME'
  54. end
  55. }
  56. }