diff options
| author | 2023-01-18 10:11:34 +0100 | |
|---|---|---|
| committer | 2023-01-18 10:11:34 +0100 | |
| commit | 3e7075f8944ac56b78c82f68835722807ad62e18 (patch) | |
| tree | e35b911315a079ba78b2138c4fd4a8f6e1a19094 /dot_config/nvim/lua/bindings.lua | |
| parent | nvim: add clojure qol (diff) | |
nvim: update config (checkpoint)
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/lua/bindings.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/bindings.lua b/dot_config/nvim/lua/bindings.lua index eb579f9..42c5896 100644 --- a/dot_config/nvim/lua/bindings.lua +++ b/dot_config/nvim/lua/bindings.lua @@ -1,3 +1,5 @@ +---@diagnostic disable:undefined-global + local util = require 'util' local env = vim.env @@ -11,11 +13,21 @@ if not util.hp 'which-key.nvim' then else -- general bindings that aren't specific to a plugin require 'which-key'.register { + -- diagnostics + ['<leader>'] = { + e = { vim.diagnostic.open_float, 'diag float' }, + q = { vim.diagnostic.setloclist, 'diag locations' }, + }, + ['[d'] = { vim.diagnostic.goto_prev, 'prev diag' }, + [']d'] = { vim.diagnostic.goto_next, 'next diag' }, + + -- source ['<leader>s'] = { name = '+source', v = { function() dofile(env.MYVIMRC) end, 'Vimrc' }, ['%'] = { '<cmd>source %<cr>', 'Current File' }, }, + -- document missing builtins ['g'] = { t = 'Next tab', |
