replace nvim-code-action-menu with actions-preview
This commit is contained in:
		
							parent
							
								
									dd18c0a9bc
								
							
						
					
					
						commit
						ccbf466c55
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -8,7 +8,6 @@ local on_attach = function(client, bufnr) | |||
|     utils.map("n", "<M-r>", "<cmd>lua vim.lsp.buf.rename()()<CR>") | ||||
|     utils.map("n", "[d", "<cmd>lua vim.diagnostic.goto_prev()<CR>") | ||||
|     utils.map("n", "]d", "<cmd>lua vim.diagnostic.goto_next()<CR>") | ||||
|     utils.map("n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>") | ||||
|     utils.map("n", "<leader>wl", "<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>") | ||||
|     utils.map("n", "<leader>wa", "<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>") | ||||
|     utils.map("n", "<leader>wr", "<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>") | ||||
|  |  | |||
|  | @ -53,7 +53,11 @@ require('packer').startup(function() | |||
| 
 | ||||
|   -- LSP and related | ||||
|   use { 'neovim/nvim-lspconfig' } | ||||
|   use { 'weilbith/nvim-code-action-menu', cmd = 'CodeActionMenu' } | ||||
|   use { 'aznhe21/actions-preview.nvim', | ||||
|       config = function() | ||||
|         vim.keymap.set("n", "<space>ca", require("actions-preview").code_actions) | ||||
|       end, | ||||
|   } | ||||
|   use { 'folke/trouble.nvim' } -- lsp diagnostics | ||||
| 
 | ||||
|   -- Languages that need a plugin to extend default lsp | ||||
|  |  | |||
		Reference in a new issue