]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/config/options.lua
nvim: don't use trouble for neotest
[dotfiles.git] / nvim / lua / config / options.lua
index cd18d69a3fe0a8ba64e52cde528373caff935a7b..31f96b7e47e9e90415e53ba51ce3f46bdf518fb9 100644 (file)
@@ -2,6 +2,16 @@
 
 local opt = vim.opt
 
+opt.fillchars = {
+  foldopen = "",
+  foldclose = "",
+  fold = " ",
+  foldsep = " ",
+  eob = " ",
+  diff = "⣿",
+  vert = "│",
+}
+
 vim.g.man_hardwrap = 1
 vim.env.MANWIDTH = 80
 
@@ -10,19 +20,19 @@ vim.diagnostic.config({ virtual_text = false })
 -- TODO: also try noinsert
 opt.completeopt = "menu,menuone,noselect"
 
+-- TODO: review clipboard providers
+-- :help provider-clipboard
+
 -- Some settings taken from LazyVim's default options
 opt.pumblend = 10 -- Popup blend
 opt.pumheight = 10 -- Maximum number of entries in a popup
 opt.showmode = false -- Dont show mode since we have a statusline
 opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
 opt.updatetime = 200 -- Save swap file and trigger CursorHold
-if vim.fn.has("nvim-0.9.0") == 1 then
-  opt.splitkeep = "screen"
-  opt.shortmess:append({ C = true })
-end
+opt.splitkeep = "screen"
+opt.shortmess:append({ C = true })
+opt.foldmethod = "expr"
+opt.foldexpr = "v:lua.require'rmz.util'.foldexpr()"
+
 -- do not let markdown plugin change indent
 vim.g.markdown_recommended_style = 0
-
-vim.g.lazyvim_picker = "telescope"
-
-vim.g.snacks_animate = false