from-scratch rewrite #1
@@ -2,7 +2,21 @@ return {
 | 
				
			|||||||
  "stevearc/oil.nvim",
 | 
					  "stevearc/oil.nvim",
 | 
				
			||||||
  ---@module 'oil'
 | 
					  ---@module 'oil'
 | 
				
			||||||
  ---@type oil.SetupOpts
 | 
					  ---@type oil.SetupOpts
 | 
				
			||||||
	opts = {},
 | 
					  opts = {
 | 
				
			||||||
 | 
					    columns = {
 | 
				
			||||||
 | 
					      "icon",
 | 
				
			||||||
 | 
					      "permissions",
 | 
				
			||||||
 | 
					      "size",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    watch_for_changes = true,
 | 
				
			||||||
 | 
					    view_options = {
 | 
				
			||||||
 | 
					      -- Show files and directories that start with "."
 | 
				
			||||||
 | 
					      show_hidden = true,
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    float = {
 | 
				
			||||||
 | 
					      preview_split = "right",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  -- Optional dependencies
 | 
					  -- Optional dependencies
 | 
				
			||||||
  dependencies = { { "echasnovski/mini.icons", opts = {} } },
 | 
					  dependencies = { { "echasnovski/mini.icons", opts = {} } },
 | 
				
			||||||
  -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
 | 
					  -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,6 @@ return {
 | 
				
			|||||||
    -- or leave it empty to use the default settings
 | 
					    -- or leave it empty to use the default settings
 | 
				
			||||||
    -- refer to the configuration section below
 | 
					    -- refer to the configuration section below
 | 
				
			||||||
    bigfile = { enabled = true },
 | 
					    bigfile = { enabled = true },
 | 
				
			||||||
    dashboard = { enabled = true },
 | 
					 | 
				
			||||||
    explorer = { enabled = true },
 | 
					    explorer = { enabled = true },
 | 
				
			||||||
    indent = { enabled = true },
 | 
					    indent = { enabled = true },
 | 
				
			||||||
    input = { enabled = true },
 | 
					    input = { enabled = true },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										42
									
								
								nvim/lua/plugins/trouble.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								nvim/lua/plugins/trouble.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
				
			|||||||
 | 
					return {
 | 
				
			||||||
 | 
					  "folke/trouble.nvim",
 | 
				
			||||||
 | 
					  config = function()
 | 
				
			||||||
 | 
					    require("trouble").setup({})
 | 
				
			||||||
 | 
					    local config = require("fzf-lua.config")
 | 
				
			||||||
 | 
					    local actions = require("trouble.sources.fzf").actions
 | 
				
			||||||
 | 
					    config.defaults.actions.files["ctrl-t"] = actions.open
 | 
				
			||||||
 | 
					  end,
 | 
				
			||||||
 | 
					  cmd = "Trouble",
 | 
				
			||||||
 | 
					  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 focus=false<cr>",
 | 
				
			||||||
 | 
					      desc = "Symbols (Trouble)",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "<leader>cl",
 | 
				
			||||||
 | 
					      "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
 | 
				
			||||||
 | 
					      desc = "LSP Definitions / references / ... (Trouble)",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "<leader>xL",
 | 
				
			||||||
 | 
					      "<cmd>Trouble loclist toggle<cr>",
 | 
				
			||||||
 | 
					      desc = "Location List (Trouble)",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "<leader>xQ",
 | 
				
			||||||
 | 
					      "<cmd>Trouble qflist toggle<cr>",
 | 
				
			||||||
 | 
					      desc = "Quickfix List (Trouble)",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user