Fixed FIlebrowser Plugin
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
--- https://github.com/ibhagwan/nvim-lua
|
||||
|
||||
|
||||
local colors = require('colors').monokai
|
||||
local colors = require('colors').dracula_nvim
|
||||
|
||||
local vi_mode_colors = {
|
||||
NORMAL = colors.cyan,
|
||||
|
||||
@ -23,17 +23,17 @@ require('gitsigns').setup {
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
|
||||
sign_priority = 6,
|
||||
sign_priority = 1,
|
||||
update_debounce = 100,
|
||||
status_formatter = nil, -- Use default
|
||||
max_file_length = 40000,
|
||||
preview_config = {
|
||||
-- Options passed to nvim_open_win
|
||||
border = 'single',
|
||||
style = 'minimal',
|
||||
border = 'double',
|
||||
style = 'normal',
|
||||
relative = 'cursor',
|
||||
row = 0,
|
||||
col = 1
|
||||
col = 2
|
||||
},
|
||||
yadm = {
|
||||
enable = false
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
require'marks'.setup {
|
||||
-- whether to map keybinds or not. default true
|
||||
default_mappings = true,
|
||||
-- which builtin marks to show. default {}
|
||||
builtin_marks = { ".", "<", ">", "^" },
|
||||
-- whether movements cycle back to the beginning/end of buffer. default true
|
||||
cyclic = true,
|
||||
-- whether the shada file is updated after modifying uppercase marks. default false
|
||||
force_write_shada = false,
|
||||
-- how often (in ms) to redraw signs/recompute mark positions.
|
||||
-- higher values will have better performance but may cause visual lag,
|
||||
-- while lower values may cause performance penalties. default 150.
|
||||
refresh_interval = 250,
|
||||
-- sign priorities for each type of mark - builtin marks, uppercase marks, lowercase
|
||||
-- marks, and bookmarks.
|
||||
-- can be either a table with all/none of the keys, or a single number, in which case
|
||||
-- the priority applies to all marks.
|
||||
-- default 10.
|
||||
sign_priority = { lower=10, upper=15, builtin=8, bookmark=20 },
|
||||
-- disables mark tracking for specific filetypes. default {}
|
||||
excluded_filetypes = {},
|
||||
-- marks.nvim allows you to configure up to 10 bookmark groups, each with its own
|
||||
-- sign/virttext. Bookmarks can be used to group together positions and quickly move
|
||||
-- across multiple buffers. default sign is '!@#$%^&*()' (from 0 to 9), and
|
||||
-- default virt_text is "".
|
||||
bookmark_0 = {
|
||||
sign = "⚑",
|
||||
virt_text = "hello world"
|
||||
},
|
||||
mappings = {}
|
||||
}
|
||||
@ -8,5 +8,5 @@ require("nvim-mapper").setup({
|
||||
-- Available actions:
|
||||
-- * "definition" - Go to keybind definition (default)
|
||||
-- * "execute" - Execute the keybind command
|
||||
action_on_enter = "definition",
|
||||
action_on_enter = "execute",
|
||||
})
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
-- Plugin: nvim-treesitter
|
||||
-- url: https://github.com/nvim-treesitter/nvim-treesitter
|
||||
|
||||
|
||||
local status_ok, nvim_treesitter = pcall(require, 'nvim-treesitter.configs')
|
||||
if not status_ok then
|
||||
return
|
||||
@ -18,10 +17,10 @@ nvim_treesitter.setup {
|
||||
'bash', 'css', 'html', 'javascript', 'json', 'lua', 'python',
|
||||
'vim', 'yaml', 'typescript',
|
||||
},
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
sync_install = true,
|
||||
highlight = {
|
||||
-- `false` will disable the whole extension
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
}
|
||||
|
||||
@ -41,9 +41,8 @@ return require'packer'.startup(function()
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
}
|
||||
}
|
||||
|
||||
use ({
|
||||
'L3MON4D3/LuaSnip', tag = "v<CurrentMajor>.*",
|
||||
'L3MON4D3/LuaSnip',
|
||||
requires = {
|
||||
'saadparwaiz1/cmp_luasnip'
|
||||
}
|
||||
@ -68,7 +67,7 @@ return require'packer'.startup(function()
|
||||
config = function() require("tmux").setup() end
|
||||
})
|
||||
-- Find & Search LSP Tags
|
||||
use 'liuchengxu/vista.vim'
|
||||
--use 'liuchengxu/vista.vim'
|
||||
|
||||
-- Snippets
|
||||
use 'rafamadriz/friendly-snippets'
|
||||
@ -77,17 +76,17 @@ return require'packer'.startup(function()
|
||||
use 'pacha/vem-tabline'
|
||||
|
||||
-- Nvim Tree File Manager on the Left
|
||||
use 'kyazdani42/nvim-tree.lua'
|
||||
|
||||
use 'nvim-tree/nvim-tree.lua'
|
||||
|
||||
-- Trouble Shows Errors with Files.
|
||||
use {
|
||||
"folke/trouble.nvim",
|
||||
requires = "kyazdani42/nvim-web-devicons",
|
||||
config = function()
|
||||
require("trouble").setup {
|
||||
}
|
||||
end
|
||||
}
|
||||
"folke/trouble.nvim",
|
||||
requires = "nvim-tree/nvim-web-devicons",
|
||||
config = function()
|
||||
require("trouble").setup {
|
||||
}
|
||||
end
|
||||
}
|
||||
|
||||
-- Close your brackets easily
|
||||
use {
|
||||
@ -130,19 +129,20 @@ return require'packer'.startup(function()
|
||||
end
|
||||
})
|
||||
-- Headlines Extension
|
||||
use 'lukas-reineke/headlines.nvim'
|
||||
--use 'lukas-reineke/headlines.nvim'
|
||||
|
||||
-- Follow MD Links
|
||||
use 'jghauser/follow-md-links.nvim'
|
||||
--use 'jghauser/follow-md-links.nvim'
|
||||
|
||||
|
||||
-- Markdown Preview
|
||||
use({
|
||||
--[[ use({
|
||||
"iamcco/markdown-preview.nvim",
|
||||
run = function() vim.fn["mkdp#util#install"]() end,
|
||||
})
|
||||
|
||||
use 'chentoast/marks.nvim'
|
||||
})
|
||||
--]]
|
||||
|
||||
-- use 'chentoast/marks.nvim'
|
||||
|
||||
-- Prettier Plugin for Neovim specifically
|
||||
use'MunifTanjim/prettier.nvim'
|
||||
@ -150,29 +150,33 @@ return require'packer'.startup(function()
|
||||
---------------------------------------------------------
|
||||
-- Text, Icons, Symbols
|
||||
----------------------------------------------------------
|
||||
|
||||
use 'lukas-reineke/indent-blankline.nvim'
|
||||
|
||||
use 'simrat39/symbols-outline.nvim'
|
||||
|
||||
use 'kyazdani42/nvim-web-devicons'
|
||||
use 'nvim-tree/nvim-web-devicons'
|
||||
|
||||
use 'folke/lsp-colors.nvim'
|
||||
|
||||
use 'karb94/neoscroll.nvim'
|
||||
|
||||
|
||||
-- Allow Popups for Telescope etc
|
||||
use 'nvim-lua/popup.nvim'
|
||||
use 'nvim-lua/plenary.nvim'
|
||||
use "nvim-lua/plenary.nvim"
|
||||
|
||||
-- Todo & Comments for Organization
|
||||
use {
|
||||
"folke/todo-comments.nvim",
|
||||
'folke/todo-comments.nvim',
|
||||
requires = "nvim-lua/plenary.nvim",
|
||||
config = function()
|
||||
require("todo-comments").setup {
|
||||
}
|
||||
end
|
||||
require('todo-comments').setup({
|
||||
highlight = {
|
||||
comments_only = false,
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
-- The all famous telescope
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
||||
@ -190,34 +194,28 @@ return require'packer'.startup(function()
|
||||
-----------------------------------------------------------
|
||||
-- Various Color Schemes, Dashboard, etc
|
||||
-----------------------------------------------------------
|
||||
use 'tjdevries/colorbuddy.nvim'
|
||||
use 'bkegley/gloombuddy'
|
||||
use 'tanvirtin/monokai.nvim'
|
||||
use 'Mofiqul/dracula.nvim'
|
||||
use 'lunarvim/colorschemes'
|
||||
use { 'rose-pine/neovim', as = 'rose-pine' }
|
||||
use 'folke/tokyonight.nvim'
|
||||
-- use {
|
||||
-- "catppuccin/nvim", as = "catppuccin",
|
||||
-- require("catppuccin").setup({
|
||||
-- flavour = "catpuccin-mocha"
|
||||
-- })
|
||||
-- }
|
||||
use { "catppuccin/nvim", as = "catppuccin" }
|
||||
use {
|
||||
'feline-nvim/feline.nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||
requires = { 'nvim-tree/nvim-web-devicons' },
|
||||
}
|
||||
|
||||
use {"ellisonleao/glow.nvim"}
|
||||
-- Signs for Git Status Information
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
requires = { 'nvim-lua/plenary.nvim' },
|
||||
'lewis6991/gitsigns.nvim',
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end
|
||||
}
|
||||
|
||||
-- The Dashboard
|
||||
use {
|
||||
'goolord/alpha-nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||
requires = { 'nvim-tree/nvim-web-devicons' },
|
||||
}
|
||||
end)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
local g = vim.g
|
||||
|
||||
local fb_actions = require "telescope".extensions.file_browser.actions
|
||||
--local fb_actions = require "telescope".extensions.file_browser.actions
|
||||
|
||||
local telescope_installer = require('telescope').setup({
|
||||
defaults = {
|
||||
@ -10,6 +10,7 @@ local telescope_installer = require('telescope').setup({
|
||||
-- config_key = value,
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-h>"] = "which_key"
|
||||
-- map actions.which_key to <C-h> (default: <C-/>)
|
||||
-- actions.which_key shows the mappings for your picker,
|
||||
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
||||
@ -22,23 +23,22 @@ local telescope_installer = require('telescope').setup({
|
||||
}
|
||||
},
|
||||
extensions = {
|
||||
file_browser = {
|
||||
theme = "ivy",
|
||||
--[[ file_browser = {
|
||||
theme = "dropdown",
|
||||
-- disables netrw and use telescope-file-browser in its place
|
||||
hijack_netrw = true,
|
||||
mappings = {
|
||||
["i"] = {
|
||||
["<C-c>"] = fb_actions.create,
|
||||
["<C-r>"] = fb_actions.remove,
|
||||
["<C-p>"] = fb_actions.copy,
|
||||
["<C-m>"] = fb_actions.move,
|
||||
|
||||
},
|
||||
["n"] = {
|
||||
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
--]]
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
require("telescope").load_extension "file_browser"
|
||||
|
||||
Reference in New Issue
Block a user