From 780d2bca89b769bc6a1b8d3dbe22a6bb4616f733 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 15 Aug 2024 20:56:51 +0800 Subject: Update --- vim/mini.lua | 102 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'vim/mini.lua') 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({ end, }, -- }}} - -- markview.nvim {{{ - { - "OXY2DEV/markview.nvim", - lazy = false, - ft = "markdown", - - dependencies = { - -- You may not need this if you don't lazy load - -- Or if the parsers are in your $RUNTIMEPATH - "nvim-treesitter/nvim-treesitter", - - "nvim-tree/nvim-web-devicons" - }, - config = function() - vim.keymap.set('n', '\\m', ":Markview", { buffer = bufnr, desc = '' }) - end - }, - -- }}} + -- -- markview.nvim {{{ + -- { + -- "OXY2DEV/markview.nvim", + -- lazy = false, + -- ft = "markdown", + -- + -- dependencies = { + -- -- You may not need this if you don't lazy load + -- -- Or if the parsers are in your $RUNTIMEPATH + -- "nvim-treesitter/nvim-treesitter", + -- + -- "nvim-tree/nvim-web-devicons" + -- }, + -- config = function() + -- vim.keymap.set('n', '\\m', ":Markview", { buffer = bufnr, desc = '' }) + -- end + -- }, + -- -- }}} -- lspconfig {{{ -- Use :help lspconfig-all to check servers @@ -1412,39 +1412,39 @@ require("lazy").setup({ }, -- }}} - -- lspsaga {{{ - { - 'nvimdev/lspsaga.nvim', - dependencies = { - 'nvim-treesitter/nvim-treesitter', -- optional - 'nvim-tree/nvim-web-devicons', -- optional - }, - config = function() - require('lspsaga').setup({ - autochdir = true, - }) - vim.api.nvim_create_autocmd("LspAttach", { - group = custom_autocommands, - pattern = "*", - callback = function(args) - local map = vim.api.nvim_buf_set_keymap - map(0, "n", "gd", "Lspsaga goto_definition", { silent = true, noremap = true }) - map(0, "n", "gR", "Lspsaga rename", { silent = true, noremap = true }) - map(0, "n", "gx", "Lspsaga code_action", { silent = true, noremap = true }) - map(0, "x", "gx", ":Lspsaga range_code_action", { silent = true, noremap = true }) - map(0, "n", "K", "Lspsaga hover_doc", { silent = true, noremap = true }) - map(0, "n", "go", "Lspsaga show_line_diagnostics", { silent = true, noremap = true }) - map(0, "n", "gj", "Lspsaga diagnostic_jump_next", { silent = true, noremap = true }) - map(0, "n", "gk", "Lspsaga diagnostic_jump_prev", { silent = true, noremap = true }) - - -- Don't know why... Everytime when modeline is set and insert a single char - -- while inside a fold, the fold closes. - vim.opt_local.modeline = false - end, - }) - end - }, - -- }}} + -- -- lspsaga {{{ + -- { + -- 'nvimdev/lspsaga.nvim', + -- dependencies = { + -- 'nvim-treesitter/nvim-treesitter', -- optional + -- 'nvim-tree/nvim-web-devicons', -- optional + -- }, + -- config = function() + -- require('lspsaga').setup({ + -- autochdir = true, + -- }) + -- vim.api.nvim_create_autocmd("LspAttach", { + -- group = custom_autocommands, + -- pattern = "*", + -- callback = function(args) + -- local map = vim.api.nvim_buf_set_keymap + -- map(0, "n", "gd", "Lspsaga goto_definition", { silent = true, noremap = true }) + -- map(0, "n", "gR", "Lspsaga rename", { silent = true, noremap = true }) + -- map(0, "n", "gx", "Lspsaga code_action", { silent = true, noremap = true }) + -- map(0, "x", "gx", ":Lspsaga range_code_action", { silent = true, noremap = true }) + -- map(0, "n", "K", "Lspsaga hover_doc", { silent = true, noremap = true }) + -- map(0, "n", "go", "Lspsaga show_line_diagnostics", { silent = true, noremap = true }) + -- map(0, "n", "gj", "Lspsaga diagnostic_jump_next", { silent = true, noremap = true }) + -- map(0, "n", "gk", "Lspsaga diagnostic_jump_prev", { silent = true, noremap = true }) + -- + -- -- Don't know why... Everytime when modeline is set and insert a single char + -- -- while inside a fold, the fold closes. + -- vim.opt_local.modeline = false + -- end, + -- }) + -- end + -- }, + -- -- }}} -- -- conform {{{ -- { -- "stevearc/conform.nvim", -- cgit v1.2.3-70-g09d2