diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-12-28 18:30:23 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-12-28 18:30:23 +0530 |
commit | bf3dce809e84b89ba1a28da3cec9c6e48af60492 (patch) | |
tree | 8e446608e2f2be048f4836a0858d65c637e5f183 | |
parent | 2479ddf6d7abb209ef7a34cc94e73184b56c2c56 (diff) |
nvim: minor modification and moving keymaps from other files in to keymaps file
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r-- | lua/basics.lua | 50 | ||||
-rw-r--r-- | lua/keymaps.lua | 8 |
2 files changed, 33 insertions, 25 deletions
diff --git a/lua/basics.lua b/lua/basics.lua index 5a53b42..38576c3 100644 --- a/lua/basics.lua +++ b/lua/basics.lua @@ -59,32 +59,32 @@ opt.shortmess:append "csI" -- -- Disable builtin plugins local disabled_built_ins = { - "2html_plugin", - "getscript", - "getscriptPlugin", - "gzip", - "logipat", - "netrw", - "netrwPlugin", - "netrwSettings", - "netrwFileHandlers", - "matchit", - "tar", - "tarPlugin", - "rrhelper", - "spellfile_plugin", - "vimball", - "vimballPlugin", - "zip", - "zipPlugin", - "tutor", - "rplugin", - "synmenu", - "optwin", - "compiler", - "bugreport", + "2html_plugin", + "getscript", + "getscriptPlugin", + "gzip", + "logipat", + "netrw", + "netrwPlugin", + "netrwSettings", + "netrwFileHandlers", + "matchit", + "tar", + "tarPlugin", + "rrhelper", + "spellfile_plugin", + "vimball", + "vimballPlugin", + "zip", + "zipPlugin", + "tutor", + "rplugin", + "synmenu", + "optwin", + "compiler", + "bugreport", } for _, plugin in pairs(disabled_built_ins) do - g["loaded_" .. plugin] = 1 + g["loaded_" .. plugin] = 1 end diff --git a/lua/keymaps.lua b/lua/keymaps.lua index aea065d..e47ff11 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -51,3 +51,11 @@ keymap("i", "<c-j>", "<cmd>lua require'luasnip'.jump(1)<CR>", opts) keymap("s", "<c-j>", "<cmd>lua require'luasnip'.jump(1)<CR>", opts) keymap("i", "<c-k>", "<cmd>lua require'luasnip'.jump(-1)<CR>", opts) keymap("s", "<c-k>", "<cmd>lua require'luasnip'.jump(-1)<CR>", opts) + +-- Global mappings. +-- See `:help vim.diagnostic.*` for documentation on any of the below functions +vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float) +-- vim.keymap.set('n', '[d', vim.diagnostic.jump({count=1, float=true})) +-- vim.keymap.set('n', ']d', vim.diagnostic.goto_next) +vim.diagnostic.config({ jump = { float = true }}) +vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist) |