Skip to content

Commit

Permalink
Turn off cspell for markdown. Make diagnostic jumps only between warn…
Browse files Browse the repository at this point in the history
… and err
  • Loading branch information
kuznetsss committed Jan 6, 2024
1 parent 592b2e3 commit 8f5cf92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"lazy-reload.nvim": { "branch": "main", "commit": "5b781fbd4e5eaa4002f5bd52ceb1febf07d5ecbf" },
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
"lspkind-nvim": { "branch": "master", "commit": "7f26cf5e27e2bd910ce0ea00c514da2bf97423b8" },
"meadow.nvim": { "branch": "master", "commit": "946adca059d13a3c25b6c2ffd204464957dc9a7e" },
"neodev.nvim": { "branch": "main", "commit": "be8d4d4cab6c13c6a572269c9d6a63774baba9a0" },
"neogit": { "branch": "master", "commit": "93bf00cd5db1e88ea0ca9105e83f7e97896a7cd2" },
"noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" },
Expand Down
10 changes: 7 additions & 3 deletions lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ nmap('<A-t>', function()
vim.notify('Current buffer is not a file', vim.log.levels.WARN)
return
end
vim.cmd.ToggleTerm('dir='..path:parent():expand())
vim.cmd.ToggleTerm('dir=' .. path:parent():expand())
end)

nmap('<C-h>', '<C-o>')
Expand Down Expand Up @@ -48,8 +48,12 @@ nmap('gf', vim.lsp.buf.definition)
nmap('gs', vim.cmd.ClangdSwitchSourceHeader)
nmap('K', vim.lsp.buf.hover)
nmap('gr', telescope.lsp_references)
nmap('[e', vim.diagnostic.goto_prev)
nmap(']e', vim.diagnostic.goto_next)
nmap('[e', function()
vim.diagnostic.goto_prev { severity = { min = vim.diagnostic.severity.WARN } }
end)
nmap(']e', function()
vim.diagnostic.goto_next { severity = { min = vim.diagnostic.severity.WARN } }
end)
nmap('<leader>ds', telescope.lsp_document_symbols)
nmap('<leader>dS', telescope.lsp_workspace_symbols)
nmap('<leader>qf', vim.lsp.buf.code_action)
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/null_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ return {
diagnostics_postprocess = function(diagnostic)
diagnostic.severity = vim.diagnostic.severity.HINT
end,
disabled_filetypes = { 'markdown' },
diagnostic_config = {
-- see :help vim.diagnostic.config()
underline = true,
underline = false,
virtual_text = false,
signs = false,
update_in_insert = false,
Expand Down

0 comments on commit 8f5cf92

Please sign in to comment.