notification and screen resize helps
This commit is contained in:
parent
39628e8f2f
commit
1f6dce4665
4 changed files with 109 additions and 86 deletions
|
@ -30,6 +30,7 @@
|
|||
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "51f1e11a89ec701221877532ee1a23557d291dd5" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "0d29cad8de3b2c654315203fc1fe12fde722a18a" },
|
||||
"nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "f7bb866405530e863135596900781e73cbf6f4ed" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "e9062e2dfb9854e6a927370f2d720de354c88524" },
|
||||
|
|
|
@ -65,6 +65,10 @@ require("util").keymaps({
|
|||
["<leader>lz"] = { "<cmd>e<CR>", desc = "Edit current file again / Restart LSP Server" },
|
||||
["<leader>,uu"] = { ':let @u = trim(tolower(system("uuidgen")))<cr>a<C-r>u', desc = "Generate and insert UUID" },
|
||||
["B"] = { "<cmd>b#<cr>", desc = "Switch to last buffer" },
|
||||
["<leader>S"] = {
|
||||
"<cmd>set equalalways<cr><cmd>set noequalalways<cr>",
|
||||
desc = "Equalize/resize screens evenly",
|
||||
},
|
||||
},
|
||||
v = {
|
||||
["J"] = { ":m '>+1<CR>gv=gv", desc = "Visually move block down" },
|
||||
|
|
|
@ -52,3 +52,7 @@ vim.diagnostic.config({
|
|||
|
||||
-- Turn on new diff
|
||||
vim.opt.diffopt:append("linematch:20")
|
||||
|
||||
-- Set screen mode
|
||||
vim.o.noequalalways = true
|
||||
vim.o.equalalways = false
|
||||
|
|
14
lua/plugins/vim-notify.lua
Normal file
14
lua/plugins/vim-notify.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
top_down = false,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("notify").setup(opts)
|
||||
|
||||
vim.notify = require("notify")
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>fn", "<cmd>Telescope notify<cr>", desc = "Telescope search notifications" },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue