diff options
Diffstat (limited to 'vim')
| -rw-r--r-- | vim/init/config.vim | 2 | ||||
| -rw-r--r-- | vim/init/keymaps.vim | 6 | ||||
| -rw-r--r-- | vim/mini.lua | 102 |
3 files changed, 55 insertions, 55 deletions
diff --git a/vim/init/config.vim b/vim/init/config.vim index de7ee22..74cbd39 100644 --- a/vim/init/config.vim +++ b/vim/init/config.vim | |||
| @@ -24,7 +24,7 @@ augroup TerminalSize | |||
| 24 | endif | 24 | endif |
| 25 | endfunc | 25 | endfunc |
| 26 | autocmd VimEnter,VimResized * silent call LayoutForSmallTerminal(20) | 26 | autocmd VimEnter,VimResized * silent call LayoutForSmallTerminal(20) |
| 27 | autocmd VimLeave * if g:alacritty_extra_padding | call ToggleWinPadding() | endif | 27 | autocmd VimLeave,VimSuspend * if g:alacritty_extra_padding | silent call ToggleWinPadding(100) | endif |
| 28 | augroup END | 28 | augroup END |
| 29 | 29 | ||
| 30 | " }}} | 30 | " }}} |
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim index a6f75e5..c0af8c8 100644 --- a/vim/init/keymaps.vim +++ b/vim/init/keymaps.vim | |||
| @@ -756,9 +756,9 @@ nnoremap <leader><leader>rtp :Redir echo &rtp<CR>:s/,/\r/g<CR> | |||
| 756 | 756 | ||
| 757 | let g:tig_explorer_keymap_commit_split = '<C-s>' | 757 | let g:tig_explorer_keymap_commit_split = '<C-s>' |
| 758 | let g:tig_explorer_keymap_commit_vsplit = '<C-v>' | 758 | let g:tig_explorer_keymap_commit_vsplit = '<C-v>' |
| 759 | nnoremap <C-t> <Cmd>Tig<CR> | 759 | nnoremap <C-t> <Cmd>silent! Tig<CR> |
| 760 | nnoremap <C-t>s <Cmd>TigStatus<CR> | 760 | nnoremap <C-t>s <Cmd>silent! TigStatus<CR> |
| 761 | nnoremap <C-t>b <Cmd>TigBlame<CR> | 761 | nnoremap <C-t>b <Cmd>silent! TigBlame<CR> |
| 762 | 762 | ||
| 763 | " }}} | 763 | " }}} |
| 764 | " Tmp: Common system command {{{ | 764 | " Tmp: Common system command {{{ |
diff --git a/vim/mini.lua b/vim/mini.lua index 6f7ba57..92f9efe 100644 --- a/vim/mini.lua +++ b/vim/mini.lua | |||
| @@ -983,24 +983,24 @@ require("lazy").setup({ | |||
| 983 | end, | 983 | end, |
| 984 | }, | 984 | }, |
| 985 | -- }}} | 985 | -- }}} |
| 986 | -- markview.nvim {{{ | 986 | -- -- markview.nvim {{{ |
| 987 | { | 987 | -- { |
| 988 | "OXY2DEV/markview.nvim", | 988 | -- "OXY2DEV/markview.nvim", |
| 989 | lazy = false, | 989 | -- lazy = false, |
| 990 | ft = "markdown", | 990 | -- ft = "markdown", |
| 991 | 991 | -- | |
| 992 | dependencies = { | 992 | -- dependencies = { |
| 993 | -- You may not need this if you don't lazy load | 993 | -- -- You may not need this if you don't lazy load |
| 994 | -- Or if the parsers are in your $RUNTIMEPATH | 994 | -- -- Or if the parsers are in your $RUNTIMEPATH |
| 995 | "nvim-treesitter/nvim-treesitter", | 995 | -- "nvim-treesitter/nvim-treesitter", |
| 996 | 996 | -- | |
| 997 | "nvim-tree/nvim-web-devicons" | 997 | -- "nvim-tree/nvim-web-devicons" |
| 998 | }, | 998 | -- }, |
| 999 | config = function() | 999 | -- config = function() |
| 1000 | vim.keymap.set('n', '\\m', ":Markview<CR>", { buffer = bufnr, desc = '' }) | 1000 | -- vim.keymap.set('n', '\\m', ":Markview<CR>", { buffer = bufnr, desc = '' }) |
| 1001 | end | 1001 | -- end |
| 1002 | }, | 1002 | -- }, |
| 1003 | -- }}} | 1003 | -- -- }}} |
| 1004 | 1004 | ||
| 1005 | -- lspconfig {{{ | 1005 | -- lspconfig {{{ |
| 1006 | -- Use :help lspconfig-all to check servers | 1006 | -- Use :help lspconfig-all to check servers |
| @@ -1412,39 +1412,39 @@ require("lazy").setup({ | |||
| 1412 | }, | 1412 | }, |
| 1413 | 1413 | ||
| 1414 | -- }}} | 1414 | -- }}} |
| 1415 | -- lspsaga {{{ | 1415 | -- -- lspsaga {{{ |
| 1416 | { | 1416 | -- { |
| 1417 | 'nvimdev/lspsaga.nvim', | 1417 | -- 'nvimdev/lspsaga.nvim', |
| 1418 | dependencies = { | 1418 | -- dependencies = { |
| 1419 | 'nvim-treesitter/nvim-treesitter', -- optional | 1419 | -- 'nvim-treesitter/nvim-treesitter', -- optional |
| 1420 | 'nvim-tree/nvim-web-devicons', -- optional | 1420 | -- 'nvim-tree/nvim-web-devicons', -- optional |
| 1421 | }, | 1421 | -- }, |
| 1422 | config = function() | 1422 | -- config = function() |
| 1423 | require('lspsaga').setup({ | 1423 | -- require('lspsaga').setup({ |
| 1424 | autochdir = true, | 1424 | -- autochdir = true, |
| 1425 | }) | 1425 | -- }) |
| 1426 | vim.api.nvim_create_autocmd("LspAttach", { | 1426 | -- vim.api.nvim_create_autocmd("LspAttach", { |
| 1427 | group = custom_autocommands, | 1427 | -- group = custom_autocommands, |
| 1428 | pattern = "*", | 1428 | -- pattern = "*", |
| 1429 | callback = function(args) | 1429 | -- callback = function(args) |
| 1430 | local map = vim.api.nvim_buf_set_keymap | 1430 | -- local map = vim.api.nvim_buf_set_keymap |
| 1431 | map(0, "n", "gd", "<cmd>Lspsaga goto_definition<cr>", { silent = true, noremap = true }) | 1431 | -- map(0, "n", "gd", "<cmd>Lspsaga goto_definition<cr>", { silent = true, noremap = true }) |
| 1432 | map(0, "n", "gR", "<cmd>Lspsaga rename<cr>", { silent = true, noremap = true }) | 1432 | -- map(0, "n", "gR", "<cmd>Lspsaga rename<cr>", { silent = true, noremap = true }) |
| 1433 | map(0, "n", "gx", "<cmd>Lspsaga code_action<cr>", { silent = true, noremap = true }) | 1433 | -- map(0, "n", "gx", "<cmd>Lspsaga code_action<cr>", { silent = true, noremap = true }) |
| 1434 | map(0, "x", "gx", ":<c-u>Lspsaga range_code_action<cr>", { silent = true, noremap = true }) | 1434 | -- map(0, "x", "gx", ":<c-u>Lspsaga range_code_action<cr>", { silent = true, noremap = true }) |
| 1435 | map(0, "n", "K", "<cmd>Lspsaga hover_doc<cr>", { silent = true, noremap = true }) | 1435 | -- map(0, "n", "K", "<cmd>Lspsaga hover_doc<cr>", { silent = true, noremap = true }) |
| 1436 | map(0, "n", "go", "<cmd>Lspsaga show_line_diagnostics<cr>", { silent = true, noremap = true }) | 1436 | -- map(0, "n", "go", "<cmd>Lspsaga show_line_diagnostics<cr>", { silent = true, noremap = true }) |
| 1437 | map(0, "n", "gj", "<cmd>Lspsaga diagnostic_jump_next<cr>", { silent = true, noremap = true }) | 1437 | -- map(0, "n", "gj", "<cmd>Lspsaga diagnostic_jump_next<cr>", { silent = true, noremap = true }) |
| 1438 | map(0, "n", "gk", "<cmd>Lspsaga diagnostic_jump_prev<cr>", { silent = true, noremap = true }) | 1438 | -- map(0, "n", "gk", "<cmd>Lspsaga diagnostic_jump_prev<cr>", { silent = true, noremap = true }) |
| 1439 | 1439 | -- | |
| 1440 | -- Don't know why... Everytime when modeline is set and insert a single char | 1440 | -- -- Don't know why... Everytime when modeline is set and insert a single char |
| 1441 | -- while inside a fold, the fold closes. | 1441 | -- -- while inside a fold, the fold closes. |
| 1442 | vim.opt_local.modeline = false | 1442 | -- vim.opt_local.modeline = false |
| 1443 | end, | 1443 | -- end, |
| 1444 | }) | 1444 | -- }) |
| 1445 | end | 1445 | -- end |
| 1446 | }, | 1446 | -- }, |
| 1447 | -- }}} | 1447 | -- -- }}} |
| 1448 | -- -- conform {{{ | 1448 | -- -- conform {{{ |
| 1449 | -- { | 1449 | -- { |
| 1450 | -- "stevearc/conform.nvim", | 1450 | -- "stevearc/conform.nvim", |