userplugs.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. return {
  2. {
  3. "aserowy/tmux.nvim",
  4. lazy = false,
  5. },
  6. {
  7. "nvim-treesitter/nvim-treesitter",
  8. lazy = false,
  9. opts = {
  10. ensure_installed = {
  11. "julia",
  12. "rust",
  13. "go",
  14. "bash",
  15. "html",
  16. "javascript",
  17. "json",
  18. "lua",
  19. "markdown",
  20. "markdown_inline",
  21. "python",
  22. "query",
  23. "regex",
  24. "tsx",
  25. "typescript",
  26. "vim",
  27. "yaml",
  28. },
  29. indent = {
  30. disable = {
  31. "julia",
  32. },
  33. },
  34. parsers = {
  35. ziggy = {
  36. install_info = {
  37. url = "https://github.com/kristoff-it/ziggy",
  38. includes = { "tree-sitter-ziggy/src" },
  39. files = { "tree-sitter-ziggy/src/parser.c" },
  40. branch = "main",
  41. generate_requires_npm = false,
  42. requires_generate_from_grammar = false,
  43. },
  44. filetype = "ziggy",
  45. },
  46. ziggy_schema = {
  47. install_info = {
  48. url = "https://github.com/kristoff-it/ziggy",
  49. files = { "tree-sitter-ziggy-schema/src/parser.c" },
  50. branch = "main",
  51. generate_requires_npm = false,
  52. requires_generate_from_grammar = false,
  53. },
  54. filetype = "ziggy-schema",
  55. },
  56. supermd = {
  57. install_info = {
  58. url = "https://github.com/kristoff-it/supermd",
  59. includes = { "tree-sitter/supermd/src" },
  60. files = {
  61. "tree-sitter/supermd/src/parser.c",
  62. "tree-sitter/supermd/src/scanner.c",
  63. },
  64. branch = "main",
  65. generate_requires_npm = false,
  66. requires_generate_from_grammar = false,
  67. },
  68. filetype = "supermd",
  69. },
  70. supermd_inline = {
  71. install_info = {
  72. url = "https://github.com/kristoff-it/supermd",
  73. includes = { "tree-sitter/supermd-inline/src" },
  74. files = {
  75. "tree-sitter/supermd-inline/src/parser.c",
  76. "tree-sitter/supermd-inline/src/scanner.c",
  77. },
  78. branch = "main",
  79. generate_requires_npm = false,
  80. requires_generate_from_grammar = false,
  81. },
  82. filetype = "supermd_inline",
  83. },
  84. superhtml = {
  85. install_info = {
  86. url = "https://github.com/kristoff-it/superhtml",
  87. includes = { "tree-sitter-superhtml/src" },
  88. files = {
  89. "tree-sitter-superhtml/src/parser.c",
  90. "tree-sitter-superhtml/src/scanner.c",
  91. },
  92. branch = "main",
  93. generate_requires_npm = false,
  94. requires_generate_from_grammar = false,
  95. },
  96. filetype = "superhtml",
  97. },
  98. },
  99. },
  100. },
  101. {
  102. "saghen/blink.cmp",
  103. opts = {
  104. sources = {
  105. default = { "orgmode" },
  106. providers = {
  107. orgmode = {
  108. name = "Orgmode",
  109. module = "orgmode.org.autocompletion.blink",
  110. },
  111. },
  112. },
  113. completion = {
  114. ghost_text = {
  115. enabled = false,
  116. },
  117. },
  118. },
  119. },
  120. -- {
  121. -- "folke/noice.nvim",
  122. -- enabled = false,
  123. -- },
  124. {
  125. "freitass/todo.txt-vim",
  126. },
  127. {
  128. "nvim-orgmode/orgmode",
  129. event = "VeryLazy",
  130. ft = { "org" },
  131. config = function()
  132. -- Setup orgmode
  133. require("orgmode").setup({
  134. org_agenda_files = "~/orgfiles/**/*",
  135. org_default_notes_file = "~/orgfiles/refile.org",
  136. })
  137. -- NOTE: If you are using nvim-treesitter with ~ensure_installed = "all"~ option
  138. -- add ~org~ to ignore_install
  139. -- require('nvim-treesitter.configs').setup({
  140. -- ensure_installed = 'all',
  141. -- ignore_install = { 'org' },
  142. -- })
  143. end,
  144. },
  145. {
  146. "hat0uma/csvview.nvim",
  147. opts = {
  148. parser = { comments = { "#", "//" } },
  149. keymaps = {
  150. -- Text objects for selecting fields
  151. textobject_field_inner = { "if", mode = { "o", "x" } },
  152. textobject_field_outer = { "af", mode = { "o", "x" } },
  153. -- Excel-like navigation:
  154. -- Use <Tab> and <S-Tab> to move horizontally between fields.
  155. -- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
  156. -- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
  157. jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
  158. jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
  159. jump_next_row = { "<Enter>", mode = { "n", "v" } },
  160. jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
  161. },
  162. },
  163. cmd = { "CsvViewEnable", "CsvViewDisable", "CsvViewToggle" },
  164. },
  165. {
  166. "stevearc/conform.nvim",
  167. opts = {
  168. formatters = {
  169. superhtml = {
  170. inherit = false,
  171. command = "superhtml",
  172. stdin = true,
  173. args = { "fmt", "--stdin-super" },
  174. },
  175. ziggy = {
  176. inherit = false,
  177. command = "ziggy",
  178. stdin = true,
  179. args = { "fmt", "--stdin" },
  180. },
  181. ziggy_schema = {
  182. inherit = false,
  183. command = "ziggy",
  184. stdin = true,
  185. args = { "fmt", "--stdin-schema" },
  186. },
  187. },
  188. formatters_by_ft = {
  189. shtml = { "superhtml" },
  190. ziggy = { "ziggy" },
  191. ziggy_schema = { "ziggy_schema" },
  192. },
  193. },
  194. },
  195. }