diff options
-rw-r--r-- | common/vim.nix | 1 | ||||
-rw-r--r-- | dotfiles/vim.lua | 17 |
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" | |||
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) |