Skip to content

Commit

Permalink
lspsaga don't fucking work, issue - nvimdev/lspsaga.nvim#1484, go to …
Browse files Browse the repository at this point in the history
…lazyvim
  • Loading branch information
Dmitriy Smotrov committed Oct 29, 2024
1 parent 37730c8 commit f31160b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
23 changes: 23 additions & 0 deletions after/plugin/lspsaga.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
local status, lspsaga = pcall(require, 'lspsaga')

if (not status) then
print('lspsaga is not installed!')
end


lspsaga.setup {
server_filetype_map = {},
}

local opts = {
noremap = true,
silent = true,
}

vim.keymap.set('n', '<C-]>', '[[<CMD>Lspsaga diagnostic_jump_next<CR>]]', opts)
vim.keymap.set('n', '<C-[>', '[[<CMD>Lspsaga diagnostic_jump_prev<CR>]]', opts)
vim.keymap.set('n', '<K>', '[[<CMD>Lspsaga hover_doc<CR>]]', opts)
vim.keymap.set('n', 'gd', '[[<CMD>Lspsaga lsp_finder<CR>]]', opts)
vim.keymap.set('n', 'gs', '[[<CMD>Lspsaga signature_help<CR>]]', opts)
vim.keymap.set('n', 'gp', '[[<CMD>Lspsaga preview_defenition<CR>]]', opts)
vim.keymap.set('n', 'gr', '[[<CMD>Lspsaga rename]]', opts)
26 changes: 16 additions & 10 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,25 @@ packer.startup(function(use)
-- install jsregexp (optional!:).
run = "make install_jsregexp"
})
use 'neovim/nvim-lspconfig' -- Use LSP instead coc
use 'onsails/lspkind-nvim' -- vscodes lije pictograms
use 'hrsh7th/cmp-buffer' -- nvim-cmp source for buffer words
use 'hrsh7th/cmp-nvim-lsp' -- nvim-cmp source for neovim's built-in LSP
use 'hrsh7th/nvim-cmp'
use 'nvim-lua/plenary.nvim' -- Common utilities
use 'rcarriga/nvim-notify'
use 'MunifTanjim/nui.nvim'
use 'folke/noice.nvim' -- notification windows
use { -- notification windows
'folke/noice.nvim',
requires = {
use 'rcarriga/nvim-notify',
use 'MunifTanjim/nui.nvim' -- ui coomponents for nvim plugins
}
}
use 'folke/todo-comments.nvim' -- highlight todo comments
use 'folke/trouble.nvim'
-- use 'folke/which-key.nvim'
use 'ryanoasis/vim-devicons'
use 'kyazdani42/nvim-web-devicons'
use 'neovim/nvim-lspconfig' -- Use LSP instead coc
use 'nvimdev/lspsaga.nvim' -- tools for working with lsp
use 'onsails/lspkind-nvim' -- vscodes like pictograms
use 'hrsh7th/cmp-buffer' -- nvim-cmp source for buffer words
use 'hrsh7th/cmp-nvim-lsp' -- nvim-cmp source for neovim's built-in LSP
use 'hrsh7th/nvim-cmp'
use 'preservim/tagbar' -- simple file structure, need ctags
use 'lewis6991/gitsigns.nvim' -- inline and chunks git blame
use 'tpope/vim-fugitive' -- git comands from vim
Expand All @@ -55,7 +60,7 @@ packer.startup(function(use)
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
}
}
use { 'nvim-treesitter/nvim-treesitter' }
use 'nvim-treesitter/nvim-treesitter'
use {
'numToStr/Comment.nvim',
requires = {
Expand All @@ -78,6 +83,7 @@ packer.startup(function(use)
require("nvim-autopairs").setup {}
end
}
use { "windwp/nvim-ts-autotag" }
use "windwp/nvim-ts-autotag"
use "tpope/vim-surround"
end
)

0 comments on commit f31160b

Please sign in to comment.