summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/vim.nix1
-rw-r--r--dotfiles/vim.lua17
2 files changed, 15 insertions, 3 deletions
diff --git a/common/vim.nix b/common/vim.nix
index d571cae..ba756e9 100644
--- a/common/vim.nix
+++ b/common/vim.nix
@@ -72,6 +72,7 @@ let
72 gitsigns-nvim 72 gitsigns-nvim
73 diffview-nvim 73 diffview-nvim
74 nvim-notify 74 nvim-notify
75 indent-blankline-nvim
75 76
76 # Completion 77 # Completion
77 nvim-cmp 78 nvim-cmp
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)