oil snacks trouble
This commit is contained in:
		@@ -1,11 +1,25 @@
 | 
			
		||||
return {
 | 
			
		||||
	"stevearc/oil.nvim",
 | 
			
		||||
	---@module 'oil'
 | 
			
		||||
	---@type oil.SetupOpts
 | 
			
		||||
	opts = {},
 | 
			
		||||
	-- Optional dependencies
 | 
			
		||||
	dependencies = { { "echasnovski/mini.icons", opts = {} } },
 | 
			
		||||
	-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
 | 
			
		||||
	-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
 | 
			
		||||
	lazy = false,
 | 
			
		||||
  "stevearc/oil.nvim",
 | 
			
		||||
  ---@module 'oil'
 | 
			
		||||
  ---@type oil.SetupOpts
 | 
			
		||||
  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
 | 
			
		||||
  dependencies = { { "echasnovski/mini.icons", opts = {} } },
 | 
			
		||||
  -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
 | 
			
		||||
  -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
 | 
			
		||||
  lazy = false,
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,6 @@ return {
 | 
			
		||||
    -- or leave it empty to use the default settings
 | 
			
		||||
    -- refer to the configuration section below
 | 
			
		||||
    bigfile = { enabled = true },
 | 
			
		||||
    dashboard = { enabled = true },
 | 
			
		||||
    explorer = { enabled = true },
 | 
			
		||||
    indent = { 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