change conceallevel to 2
This commit is contained in:
parent
49fa962b70
commit
3637c8d7b7
1 changed files with 15 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
vim.opt.number = true -- show line number
|
vim.opt.number = true -- show line number
|
||||||
vim.opt.relativenumber = true -- juicy relativity
|
vim.opt.relativenumber = true -- juicy relativity
|
||||||
|
|
||||||
vim.opt.autoindent = true
|
vim.opt.autoindent = true
|
||||||
|
|
@ -18,7 +18,7 @@ vim.opt.wrap = false -- bad, stay away from me!
|
||||||
vim.opt.hlsearch = false
|
vim.opt.hlsearch = false
|
||||||
vim.opt.incsearch = true -- highlight search pattern as you type
|
vim.opt.incsearch = true -- highlight search pattern as you type
|
||||||
|
|
||||||
vim.opt.scrolloff = 8 -- give me some personal space
|
vim.opt.scrolloff = 8 -- give me some personal space
|
||||||
|
|
||||||
vim.opt.updatetime = 50
|
vim.opt.updatetime = 50
|
||||||
|
|
||||||
|
|
@ -27,10 +27,10 @@ vim.opt.ignorecase = true -- case-insensitive search
|
||||||
vim.opt.backspace = { "start", "eol", "indent" }
|
vim.opt.backspace = { "start", "eol", "indent" }
|
||||||
|
|
||||||
-- don't want to look into these...
|
-- don't want to look into these...
|
||||||
vim.opt.wildignore:append { "*/node_modules/*", "*/__pycache__/*" }
|
vim.opt.wildignore:append({ "*/node_modules/*", "*/__pycache__/*" })
|
||||||
|
|
||||||
-- add '*' in block comments
|
-- add '*' in block comments
|
||||||
vim.opt.formatoptions:append { 'r' }
|
vim.opt.formatoptions:append({ "r" })
|
||||||
|
|
||||||
-- theme
|
-- theme
|
||||||
vim.opt.winblend = 0
|
vim.opt.winblend = 0
|
||||||
|
|
@ -42,20 +42,21 @@ vim.opt.termguicolors = true -- good shit, just take it
|
||||||
-- activate persistent undo
|
-- activate persistent undo
|
||||||
vim.opt.undofile = true
|
vim.opt.undofile = true
|
||||||
|
|
||||||
|
|
||||||
-- highlight on yank
|
-- highlight on yank
|
||||||
local highligh_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
local highligh_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
|
||||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.highlight.on_yank()
|
vim.highlight.on_yank()
|
||||||
end,
|
end,
|
||||||
group = highligh_group,
|
group = highligh_group,
|
||||||
pattern = '*',
|
pattern = "*",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.opt.completeopt = "menu,menuone,noselect"
|
||||||
vim.opt.completeopt = 'menu,menuone,noselect'
|
|
||||||
|
|
||||||
vim.opt.breakindent = true
|
vim.opt.breakindent = true
|
||||||
|
|
||||||
vim.opt.cursorline = true
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
|
-- for obsidian
|
||||||
|
vim.opt.conceallevel = 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue