Skip to content

Commit 2a73e49

Browse files
committed
[vim] shush warning from obsidian. I like checkboxes render, but
hiding "```" is to much. epwalsh/obsidian.nvim#286 (comment) epwalsh/obsidian.nvim#307
1 parent 0df8ad6 commit 2a73e49

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

vim/.config/nvim/lua/config.lua

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,27 @@ vim.opt.swapfile = false -
1717
vim.o.hidden = true -- Do not save when switching buffers
1818
vim.opt.autoread = true -- Auto reload file when changed from the outside
1919
vim.opt.undofile = true -- Save undo history
20+
vim.o.conceallevel = 0 -- Don't render markdown (hide ```, parse checkbockes etc.)
2021

21-
-- wildmenu (command-line)
22+
-- Wildmenu (command-line)
2223
vim.opt.wildmenu = true -- autocompletion on
2324
vim.opt.wildmode = "longest:full,full" -- style
2425
vim.opt.wildoptions = "pum,tagfile" -- options
2526
vim.o.inccommand = "nosplit" -- Incremental live completion
2627
vim.opt.history = 900 -- The command-line history table size.
2728
vim.opt.path = vim.opt.path + "**" -- Help with searching via :find and :grep (I'm using 3rd party for that anyway)
2829

29-
-- don't report in :checkhealth
30+
-- :checkhealth - Don't report problems bellow
3031
vim.g.loaded_ruby_provider = 0
3132
vim.g.loaded_perl_provider = 0
3233

33-
-- Searching
34+
-- Searching
3435
vim.opt.magic = true -- For regular expressions turn magic on
3536
vim.o.hlsearch = true -- highlight
3637
vim.o.ignorecase = true -- Case insensitive searching UNLESS /C or capital in search
3738
vim.o.smartcase = true -- Case insensitive searching UNLESS /C or capital in search
3839

39-
-- Look and feel
40+
-- Look and feel
4041
vim.opt.splitbelow = true -- Areas of the screen where the window splits should occur
4142
vim.opt.splitright = true -- Areas of the screen where the window splits should occur
4243
vim.opt.scrolloff = 3 -- Minimal number of screen lines to keep above and below the cursor.
@@ -48,28 +49,28 @@ vim.opt.errorbells = false -
4849
vim.opt.visualbell = false -- No annoying sound on errors
4950
vim.opt.termguicolors = true -- enable highlight groups
5051

51-
-- show white spaces, but only on demand
52+
-- Show white spaces, but only on demand
5253
-- vim.opt.listchars = "eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:·"
5354
vim.opt.listchars = "eol:¬,tab:!⇥,trail:·,extends:>,precedes:<,space:·"
5455
vim.opt.list = false
5556

56-
-- default indentation (there is plugin that's trying to guess indentation style in opened file)
57+
-- Default indentation (there is plugin that's trying to guess indentation style in opened file)
5758
vim.opt.autoindent = true
5859
vim.opt.softtabstop = 4
5960
vim.opt.tabstop = 4
6061
vim.opt.shiftwidth = 4
6162
vim.opt.expandtab = true
6263

63-
-- folding
64+
-- folding
6465
vim.opt.foldmethod = "indent"
6566
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
6667
vim.opt.foldenable = true
6768
vim.opt.foldlevel = 9
6869

69-
-- DON'T WRAP LONG LINES! I'll wrap them with formatter or by myself.
70+
-- DON'T WRAP LONG LINES! I'll wrap them with formatter or by myself.
7071
vim.opt.textwidth = 0
7172
vim.opt.linebreak = true
7273
vim.opt.breakindent = true
7374
vim.opt.breakindentopt = "min:60,shift:0,sbr"
7475
vim.opt.showbreak = "+++ " -- show that sign on breaked lines.
75-
-- @example ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break.
76+
-- @example ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break. ...and if they need to be long, just display them with line break.

vim/.config/nvim/lua/plugins/obsidian.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ return {
2626
end
2727

2828
require('obsidian').setup({
29+
ui = {
30+
enable = false,
31+
},
2932
workspaces = {
3033
obsidian_util.workspaces.work,
3134
obsidian_util.workspaces.personal,

0 commit comments

Comments
 (0)