Selaa lähdekoodia

indent line plugin option

christianchiarulli 4 vuotta sitten
vanhempi
commit
b6866925e1
4 muutettua tiedostoa jossa 30 lisäystä ja 8 poistoa
  1. 1 1
      lua/default-config.lua
  2. 21 1
      lua/plugins.lua
  3. 1 0
      lua/settings.lua
  4. 7 6
      lv-config.lua

+ 1 - 1
lua/default-config.lua

@@ -21,7 +21,6 @@ O = {
         ensure_installed = "all",
         ignore_install = {"haskell"},
         highlight = {enabled = true},
-        playground = {enabled = true},
         rainbow = {enabled = false}
     },
 
@@ -35,6 +34,7 @@ O = {
         colorizer = {active = false},
         numb = {active = false},
         ts_playground = {active = false},
+        indent_line = {active = false}
 
 
     },

+ 21 - 1
lua/plugins.lua

@@ -185,7 +185,27 @@ return require("packer").startup(function(use)
         event = "BufRead",
         disable = not O.plugin.ts_playground.active
     }
-    -- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'}
+
+    use {
+        "lukas-reineke/indent-blankline.nvim",
+        branch = "lua",
+        event = "BufRead",
+        setup = function()
+
+            vim.g.indentLine_enabled = 1
+            vim.g.indent_blankline_char = "▏"
+
+            vim.g.indent_blankline_filetype_exclude = {
+                "help", "terminal", "dashboard"
+            }
+            vim.g.indent_blankline_buftype_exclude = {"terminal"}
+
+            vim.g.indent_blankline_show_trailing_blankline_indent = false
+            vim.g.indent_blankline_show_first_indent_level = true
+        end,
+        disable = not O.plugin.indent_line.active
+    }
+
     -- use {"nvim-telescope/telescope-fzy-native.nvim", opt = true}
     -- use {"nvim-telescope/telescope-project.nvim", opt = true}
     --     -- comments in context

+ 1 - 0
lua/settings.lua

@@ -46,3 +46,4 @@ vim.cmd('filetype plugin on') -- filetype detection
 vim.o.guifont = "FiraCode Nerd Font:h17"
 
 -- vim.o.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete"
+

+ 7 - 6
lv-config.lua

@@ -17,13 +17,14 @@ O.extras = false
 O.leader_key = ' '
 
 -- After changing plugin config it is recommended to run :PackerCompile
-O.plugin.hop.active = true
-O.plugin.dial.active = true
+O.plugin.hop.active = false
+O.plugin.dial.active = false
 O.plugin.dashboard.active = true
-O.plugin.matchup.active = true
-O.plugin.colorizer.active = true
-O.plugin.numb.active = true
-O.plugin.ts_playground.active = true
+O.plugin.matchup.active = false
+O.plugin.colorizer.active = false
+O.plugin.numb.active = false
+O.plugin.ts_playground.active = false
+O.plugin.indent_line.active = false
 
 -- dashboard
 -- O.dashboard.custom_header = {""}