diff options
author | Minijackson <minijackson@riseup.net> | 2022-05-02 13:13:13 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2022-05-02 13:13:13 +0200 |
commit | 21a458474bf51777204e426538c4da4a4f46e840 (patch) | |
tree | 7cef96f254423a8cde91c6bcb1b93fb7f7542346 /dotfiles/vim.lua | |
parent | ad50838b8a68a390aea5c70443e1665359dd8e89 (diff) | |
download | nixos-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.lua | 17 |
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" | |||
40 | vim.o.showmode = false | 40 | vim.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 |
43 | vim.o.listchars = "tab:│ ,extends:>,precedes:<,nbsp:+" | 43 | vim.opt.listchars = { extends = ">", precedes = "<", nbsp = "+" } |
44 | vim.wo.list = true | 44 | vim.wo.list = true |
45 | vim.o.fillchars = "fold:─,vert:│" | 45 | vim.o.fillchars = "fold:─,vert:│" |
46 | 46 | ||
@@ -80,10 +80,10 @@ vim.fn["camelcasemotion#CreateMotionMappings"] "<LocalLeader>" | |||
80 | vim.keymap.set("n", "yof", function() | 80 | vim.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 |
88 | end, mapopts) | 88 | end, mapopts) |
89 | 89 | ||
@@ -382,6 +382,17 @@ vim.notify = require "notify" | |||
382 | 382 | ||
383 | require("Comment").setup {} | 383 | require("Comment").setup {} |
384 | 384 | ||
385 | -- Indent Blankline | ||
386 | |||
387 | vim.api.nvim_set_hl(0, "IndentBlanklineContextChar", { | ||
388 | fg = vim.g.current_gruvbox_colors.aqua[1], | ||
389 | }) | ||
390 | |||
391 | require("indent_blankline").setup { | ||
392 | show_current_context = true, | ||
393 | show_current_context_start = true, | ||
394 | } | ||
395 | |||
385 | -- Local config | 396 | -- Local config |
386 | 397 | ||
387 | function isModuleAvailable(name) | 398 | function isModuleAvailable(name) |