From 97be95d96b96c42dab64dff7018a89baa22384ee Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 19 Oct 2022 23:57:09 +0200 Subject: Made Sourcing lua config easier --- lua/plugins/lspsaga-22.10.13-22:51-bak.lua | 61 ------------------------------ 1 file changed, 61 deletions(-) delete mode 100644 lua/plugins/lspsaga-22.10.13-22:51-bak.lua (limited to 'lua/plugins/lspsaga-22.10.13-22:51-bak.lua') diff --git a/lua/plugins/lspsaga-22.10.13-22:51-bak.lua b/lua/plugins/lspsaga-22.10.13-22:51-bak.lua deleted file mode 100644 index ceb1099..0000000 --- a/lua/plugins/lspsaga-22.10.13-22:51-bak.lua +++ /dev/null @@ -1,61 +0,0 @@ -local status, saga = pcall(require, "lspsaga") -if not status then - return -end - -saga.init_lsp_saga({ - -- when cursor in saga window you config these to move - move_in_saga = { prev = "k", next = "j" }, - diagnostic_header = { " ", " ", " ", " " }, - scroll_in_preview = { - scroll_down = "", - scroll_up = "", - }, - code_action_icon = "ﯦ ", - -- Same as nvim-lightbulb but async - code_action_lightbulb = { - sign = false, - virtual_text = true, - }, - finder_icons = { - def = " ", - ref = " ", - link = " ", - }, - finder_action_keys = { - open = "", - "o", - vsplit = "gv", - split = "gs", - tabe = "t", - quit = "gq", - scroll_down = "", - scroll_up = "", - }, - - -- Show symbols in winbar must be neovim 0.8.0, - -- Close it until neovim 0.8.0 become stable - symbol_in_winbar = { - in_custom = false, - --enable = enable_winbar, - separator = "  ", - show_file = true, - click_support = false, - }, -}) - - -- Mappings. -local map = vim.api.nvim_set_keymap -local opts = { noremap = true, silent = true } - -map("n", "gd", "Lspsaga lsp_finder", opts) -- Press "o" to open the reference location -map("n", "gp", "Lspsaga peek_definition", opts) -map("n", "K", "Lspsaga hover_doc", opts) -map("n", "gk", "Lspsaga diagnostic_jump_prev", opts) -map("n", "gj", "Lspsaga diagnostic_jump_next", opts) -map("n", "gs", "Lspsaga signature_help", opts) -- Default is -map("n", "go", "Lspsaga show_line_diagnostics", opts) -map("n", "gr", "Lspsaga rename", opts) -map("n", "ga", "Lspsaga code_action", opts) -map("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) -map("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) -- cgit v1.2.3