summaryrefslogtreecommitdiffstats
path: root/dotfiles/vim.lua
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-05-02 13:13:13 +0200
committerMinijackson <minijackson@riseup.net>2022-05-02 13:13:13 +0200
commit21a458474bf51777204e426538c4da4a4f46e840 (patch)
tree7cef96f254423a8cde91c6bcb1b93fb7f7542346 /dotfiles/vim.lua
parentad50838b8a68a390aea5c70443e1665359dd8e89 (diff)
downloadnixos-config-reborn-21a458474bf51777204e426538c4da4a4f46e840.tar.gz
nixos-config-reborn-21a458474bf51777204e426538c4da4a4f46e840.zip
vim: use indent-blankline
Diffstat (limited to 'dotfiles/vim.lua')
-rw-r--r--dotfiles/vim.lua17
1 files changed, 14 insertions, 3 deletions
diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua
index 5c46e43..7269c14 100644
--- a/dotfiles/vim.lua
+++ b/dotfiles/vim.lua
@@ -40,7 +40,7 @@ vim.o.background = "dark"
40vim.o.showmode = false 40vim.o.showmode = false
41 41
42-- Do not set "trail:-" because it messes up the highlighting 42-- Do not set "trail:-" because it messes up the highlighting
43vim.o.listchars = "tab:│ ,extends:>,precedes:<,nbsp:+" 43vim.opt.listchars = { extends = ">", precedes = "<", nbsp = "+" }
44vim.wo.list = true 44vim.wo.list = true
45vim.o.fillchars = "fold:─,vert:│" 45vim.o.fillchars = "fold:─,vert:│"
46 46
@@ -80,10 +80,10 @@ vim.fn["camelcasemotion#CreateMotionMappings"] "<LocalLeader>"
80vim.keymap.set("n", "yof", function() 80vim.keymap.set("n", "yof", function()
81 if vim.opt_local.formatoptions:get().a then 81 if vim.opt_local.formatoptions:get().a then
82 vim.opt_local.formatoptions:remove "a" 82 vim.opt_local.formatoptions:remove "a"
83 print(":setlocal formatoptions-=a") 83 print ":setlocal formatoptions-=a"
84 else 84 else
85 vim.opt_local.formatoptions:append "a" 85 vim.opt_local.formatoptions:append "a"
86 print(":setlocal formatoptions+=a") 86 print ":setlocal formatoptions+=a"
87 end 87 end
88end, mapopts) 88end, mapopts)
89 89
@@ -382,6 +382,17 @@ vim.notify = require "notify"
382 382
383require("Comment").setup {} 383require("Comment").setup {}
384 384
385-- Indent Blankline
386
387vim.api.nvim_set_hl(0, "IndentBlanklineContextChar", {
388 fg = vim.g.current_gruvbox_colors.aqua[1],
389})
390
391require("indent_blankline").setup {
392 show_current_context = true,
393 show_current_context_start = true,
394}
395
385-- Local config 396-- Local config
386 397
387function isModuleAvailable(name) 398function isModuleAvailable(name)