summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-12-01 15:54:15 -0800
committerNicholas <nbnoll@eml.cc>2021-12-01 15:54:15 -0800
commitb129659aaca6efbd61278b630cab7a4e858e33fe (patch)
treeda29d90d971fcb441d087b2a16822a4b73819e44
parent5d84127fb88b39015202fefcb852574d277355d0 (diff)
update neovim
-rw-r--r--.config/nvim/after/syntax/c.vim4
-rw-r--r--.config/nvim/lua/code.lua7
-rw-r--r--.config/nvim/lua/settings.lua3
-rw-r--r--.config/nvim/pack/vendor/packages1
-rw-r--r--.config/zathura/zathurarc6
5 files changed, 16 insertions, 5 deletions
diff --git a/.config/nvim/after/syntax/c.vim b/.config/nvim/after/syntax/c.vim
index 1996cfb..68e06f6 100644
--- a/.config/nvim/after/syntax/c.vim
+++ b/.config/nvim/after/syntax/c.vim
@@ -1,11 +1,13 @@
syn keyword cgoInt uint8 uint16 uint32 uint64 int8 int16 int32 int64 uint uintptr intptr byte ubyte uchar sbyte schar ushort vshort ulong vlong uvlong rune
syn keyword cgoFloat float32 float64
syn keyword cgoType string
-syn keyword cgoConstant nil
+syn keyword cgoConstant nil
+syn keyword cgoSpecial noreturn weakalias hidden weaklink
hi def link cgoType Type
hi def link cgoInt Type
hi def link cgoFloat Type
+hi def link cgoSpecial Special
hi def link cgoConstant Constant
hi def link cgoPanic Exception
hi def link cgoTodo Todo
diff --git a/.config/nvim/lua/code.lua b/.config/nvim/lua/code.lua
index 94cd76a..70a7593 100644
--- a/.config/nvim/lua/code.lua
+++ b/.config/nvim/lua/code.lua
@@ -2,6 +2,7 @@ local lsp = require('lspconfig')
local git = require('neogit')
local gitdiff = require('diffview')
local gitsigns = require('gitsigns')
+local indents = require('indent_blankline')
--------------------------------------------------------------------------
-- lsp
@@ -61,3 +62,9 @@ gitsigns.setup({
['n [d'] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns.actions\".prev_hunk()<CR>'"},
}
})
+
+--------------------------------------------------------------------------
+-- indent line
+
+indents.setup({
+})
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua
index edf15a6..a856f96 100644
--- a/.config/nvim/lua/settings.lua
+++ b/.config/nvim/lua/settings.lua
@@ -13,6 +13,7 @@ opt.backupdir = tmp .. '/backup//' -- keep backup files out
opt.backupdir = opt.backupdir + '.' -- fallback
opt.backupskip = opt.backupskip + '*.re,*.rei' -- prevent bsb's watch mode from getting confused (if 'backup' is ever set)
opt.belloff = 'all' -- never ring the bell for any reason
+opt.colorcolumn = '99999'
opt.cursorline = true -- highlight current line
opt.diffopt = opt.diffopt + 'foldcolumn:0' -- don't show fold column in diff view
opt.directory = tmp .. '/swap//' -- keep swap files out of the way
@@ -42,7 +43,7 @@ opt.listchars = {
nbsp = '⦸', -- CIRCLED REVERSE SOLIDUS (U+29B8, UTF-8: E2 A6 B8)
extends = '»', -- RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00BB, UTF-8: C2 BB)
precedes = '«', -- LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00AB, UTF-8: C2 AB)
- tab = '▷⋯', -- WHITE RIGHT-POINTING TRIANGLE (U+25B7, UTF-8: E2 96 B7) + MIDLINE HORIZONTAL ELLIPSIS (U+22EF, UTF-8: E2 8B AF)
+ tab = ' ', -- WHITE RIGHT-POINTING TRIANGLE (U+25B7, UTF-8: E2 96 B7) + MIDLINE HORIZONTAL ELLIPSIS (U+22EF, UTF-8: E2 8B AF)
trail = '•', -- BULLET (U+2022, UTF-8: E2 80 A2)
}
diff --git a/.config/nvim/pack/vendor/packages b/.config/nvim/pack/vendor/packages
index e8880ff..79d5ad8 100644
--- a/.config/nvim/pack/vendor/packages
+++ b/.config/nvim/pack/vendor/packages
@@ -20,6 +20,7 @@ tpope/vim-commentary
simeji/winresizer
adelarsq/vim-matchit
+lukas-reineke/indent-blankline.nvim
lervag/vimtex
plasticboy/vim-markdown
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
index 11b8bb3..483f2f2 100644
--- a/.config/zathura/zathurarc
+++ b/.config/zathura/zathurarc
@@ -63,10 +63,10 @@ set render-loading-bg "#3c3836" # bg
set render-loading-fg "#ebdbb2" # fg
# Recolor book content's color
-set recolor-lightcolor "#3c3836" # bg
-set recolor-darkcolor "#ebdbb2" # fg
-set recolor "true"
+# set recolor-lightcolor "#3c3836" # bg
+# set recolor-darkcolor "#ebdbb2" # fg
# set recolor-keephue true # keep original color
+set recolor "false"
# Distance between successive pages.
set page-padding 2