2 کامیت‌ها 4b5eaf6366 ... 9ff56a5572

نویسنده SHA1 پیام تاریخ
  sekhali 9ff56a5572 now using system clipboard 4 ماه پیش
  sekhali 612258680e small refactor 4 ماه پیش
2فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 2 6
      lua/configs/pretty-fold.lua
  2. 7 0
      lua/options.lua

+ 2 - 6
lua/configs/pretty-fold.lua

@@ -1,5 +1,7 @@
 --type conform.options
 local options = {
+	ft_ignore = { "neorg", "markdown", "json" },
+
 	sections = {
 		left = {
 			--function() return string.rep('+', vim.v.foldlevel) end,
@@ -42,10 +44,6 @@ local options = {
 		"#", -- python and bash comments
 		"--", -- lua comment
 		"//", -- c languages comment
-		"## region",
-		"## endregion",
-		-- not working (err in init.lua, line 78)
-		--{ "/*", "*/" },
 	},
 
 	-- list of patterns that will be removed from content foldtext section.
@@ -61,8 +59,6 @@ local options = {
 		{ "%(", ")" }, -- % to escape lua pattern char
 		{ "%[", "]" }, -- % to escape lua pattern char
 	},
-
-	ft_ignore = { "neorg", "md", "json" },
 }
 
 require("pretty-fold").setup(options)

+ 7 - 0
lua/options.lua

@@ -11,6 +11,10 @@ local cmd = vim.cmd
 
 -- }}}
 
+-- {{{
+
+-- }}}
+
 -- {{{ Diagnostic signs
 
 local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
@@ -78,11 +82,13 @@ g.python_recommended_style = 0
 
 -- }}}
 
+-- {{{ Cursor line and clipboard
 
 -- to enable cursorline!
 o.cursorlineopt = "both"
 
+o.clipboard = "unnamedplus"
+
 -- }}}
 
 -- {{{