Compare commits
	
		
			3 commits
		
	
	
		
			704d05e25c
			...
			4e298ac791
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							 | 
						4e298ac791 | ||
| 
							 | 
						a4a91d6e3f | ||
| 
							 | 
						004ab5005f | 
					 3 changed files with 66 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								init.lua
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
										
									
									
									
								
							| 
						 | 
					@ -8,7 +8,7 @@ vim.g.mapleader = ' '
 | 
				
			||||||
vim.g.maplocalleader = ' '
 | 
					vim.g.maplocalleader = ' '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
 | 
					-- Set to true if you have a Nerd Font installed and selected in the terminal
 | 
				
			||||||
vim.g.have_nerd_font = false
 | 
					vim.g.have_nerd_font = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- [[ Setting options ]]
 | 
					-- [[ Setting options ]]
 | 
				
			||||||
require 'options'
 | 
					require 'options'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								lua/plugins/noice.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								lua/plugins/noice.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					-- Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					return {
 | 
				
			||||||
 | 
					  'folke/noice.nvim',
 | 
				
			||||||
 | 
					  event = 'VeryLazy',
 | 
				
			||||||
 | 
					  opts = {
 | 
				
			||||||
 | 
					    -- add any options here
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  dependencies = {
 | 
				
			||||||
 | 
					    -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
 | 
				
			||||||
 | 
					    'MunifTanjim/nui.nvim',
 | 
				
			||||||
 | 
					    -- OPTIONAL:
 | 
				
			||||||
 | 
					    --   `nvim-notify` is only needed, if you want to use the notification view.
 | 
				
			||||||
 | 
					    --   If not available, we use `mini` as the fallback
 | 
				
			||||||
 | 
					    'rcarriga/nvim-notify',
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										48
									
								
								lua/plugins/trouble.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								lua/plugins/trouble.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,48 @@
 | 
				
			||||||
 | 
					-- Joinked word-by-word from https://www.lazyvim.org/plugins/editor#troublenvim
 | 
				
			||||||
 | 
					return { -- Better diagnostics
 | 
				
			||||||
 | 
					  'folke/trouble.nvim',
 | 
				
			||||||
 | 
					  cmd = { 'Trouble' },
 | 
				
			||||||
 | 
					  opts = {
 | 
				
			||||||
 | 
					    modes = {
 | 
				
			||||||
 | 
					      lsp = {
 | 
				
			||||||
 | 
					        win = { position = 'right' },
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  keys = {
 | 
				
			||||||
 | 
					    { '<leader>xx', '<cmd>Trouble diagnostics toggle<cr>', desc = 'Diagnostics (Trouble)' },
 | 
				
			||||||
 | 
					    { '<leader>xX', '<cmd>Trouble diagnostics toggle filter.buf=0<cr>', desc = 'Buffer Diagnostics (Trouble)' },
 | 
				
			||||||
 | 
					    { '<leader>cs', '<cmd>Trouble symbols toggle<cr>', desc = 'Symbols (Trouble)' },
 | 
				
			||||||
 | 
					    { '<leader>cS', '<cmd>Trouble lsp toggle<cr>', desc = 'LSP references/definitions/... (Trouble)' },
 | 
				
			||||||
 | 
					    { '<leader>xL', '<cmd>Trouble loclist toggle<cr>', desc = 'Location List (Trouble)' },
 | 
				
			||||||
 | 
					    { '<leader>xQ', '<cmd>Trouble qflist toggle<cr>', desc = 'Quickfix List (Trouble)' },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      '[q',
 | 
				
			||||||
 | 
					      function()
 | 
				
			||||||
 | 
					        if require('trouble').is_open() then
 | 
				
			||||||
 | 
					          require('trouble').prev { skip_groups = true, jump = true }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					          local ok, err = pcall(vim.cmd.cprev)
 | 
				
			||||||
 | 
					          if not ok then
 | 
				
			||||||
 | 
					            vim.notify(err, vim.log.levels.ERROR)
 | 
				
			||||||
 | 
					          end
 | 
				
			||||||
 | 
					        end
 | 
				
			||||||
 | 
					      end,
 | 
				
			||||||
 | 
					      desc = 'Previous Trouble/Quickfix Item',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      ']q',
 | 
				
			||||||
 | 
					      function()
 | 
				
			||||||
 | 
					        if require('trouble').is_open() then
 | 
				
			||||||
 | 
					          require('trouble').next { skip_groups = true, jump = true }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					          local ok, err = pcall(vim.cmd.cnext)
 | 
				
			||||||
 | 
					          if not ok then
 | 
				
			||||||
 | 
					            vim.notify(err, vim.log.levels.ERROR)
 | 
				
			||||||
 | 
					          end
 | 
				
			||||||
 | 
					        end
 | 
				
			||||||
 | 
					      end,
 | 
				
			||||||
 | 
					      desc = 'Next Trouble/Quickfix Item',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue