1
0

fix: remove unused plugins/configs

This commit is contained in:
Rokas Puzonas 2022-06-15 17:13:35 +03:00
parent f65d6dcc04
commit 030f50b95f
6 changed files with 6 additions and 117 deletions

View File

@ -1,3 +0,0 @@
vim.g['bracey_server_allow_remote_connections'] = 1
vim.g['bracey_server_path'] = 'http://localhost'
-- vim.g['bracey_auto_start_browser'] = 0

View File

@ -1,41 +0,0 @@
local autocmd = require 'utils.autocmd'
vim.g.dashboard_default_executive = 'telescope'
-- local function split(text)
-- local parts = {}
-- for part in text:gmatch("[^\n]+") do
-- table.insert(parts, part)
-- end
-- return parts
-- end
-- vim.g.dashboard_custom_header = split(vim.fn.system("figlet -m 2 -f slant Neovim"))
-- vim.g.dashboard_custom_header = {
-- ' ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗',
-- ' ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║',
-- ' ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║',
-- ' ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║',
-- ' ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║',
-- ' ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝',
-- }
vim.g.dashboard_custom_header = {
[[ _ __ _ ]],
[[ / | / /___ ____ _ __ (_)____ ___ ]],
[[ / |/ // _ \ / __ \ | / // // __ `__ \]],
[[ / /| // __// /_/ / |/ // // / / / / /]],
[[/_/ |_/ \___/ \____/|___//_//_/ /_/ /_/ ]],
}
autocmd('dashboard-commands', {
[[FileType dashboard nmap <buffer> <leader>ss :<C-u>SessionSave<cr>]],
[[FileType dashboard nmap <buffer> <leader>sl :<C-u>SessionLoad<CR>]],
[[FileType dashboard nnoremap <buffer> <silent> <leader>fh :DashboardFindHistory<cr>]],
[[FileType dashboard nnoremap <buffer> <silent> <leader>ff :DashboardFindFile<cr>]],
[[FileType dashboard nnoremap <buffer> <silent> <leader>tc :DashboardChangeColorscheme<cr>]],
[[FileType dashboard nnoremap <buffer> <silent> <leader>fa :DashboardFindWord<cr>]],
[[FileType dashboard nnoremap <buffer> <silent> <leader>fb :DashboardJumpMark<cr>]],
[[FileType dashboard nnoremap <buffer> <silent> <leader>cn :DashboardNewFile<cr>]],
}, true)

View File

@ -1,8 +0,0 @@
local map = require 'utils.map'
local M = {}
vim.g['fern#hide_cursor'] = true
map('n', '<leader>e', ':Fern . -drawer -reveal=% -toggle<cr>', {silent = true})
return M

View File

@ -1,25 +0,0 @@
-- suggested config for selecting text
require'nvim-treesitter.configs'.setup {
textobjects = {
select = {
enable = true,
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,
keymaps = {
-- You can use the capture groups defined in textobjects.scm
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
-- Or you can define your own textobjects like this
-- ["iF"] = {
-- python = "(function_definition) @function",
-- cpp = "(function_definition) @function",
-- c = "(function_definition) @function",
-- java = "(method_declaration) @function",
-- },
},
},
},
}

View File

@ -1,8 +0,0 @@
require'nvim-treesitter.configs'.setup {
textsubjects = {
enable = true,
keymaps = {
[';'] = 'textsubjects-smart'
}
},
}

View File

@ -22,22 +22,7 @@ local function usePlugins(use, use_rocks)
} }
-- Text object target -- Text object target
-- use 'wellle/targets.vim' use 'wellle/targets.vim'
-- TODO: setup targets.vim
-- Live html, css, javascript reloading
-- TODO: Do auto setup of plugin.
-- Because you have to manually install the server at least once
-- in the location where packer installs this.
-- For me:
-- > cd ~/.local/share/nvim/site/pack/packer/opt/bracey.vim
-- > npm install --prefix server
-- use {
-- 'turbio/bracey.vim',
-- cmd = { 'Bracey', 'BraceyStop', 'BraceyReload', 'BraceyEval' },
-- run = 'npm install --prefix server',
-- config = [[require 'config.bracey']]
-- }
-- Align characters vertically -- Align characters vertically
use 'godlygeek/tabular' use 'godlygeek/tabular'
@ -62,6 +47,9 @@ local function usePlugins(use, use_rocks)
-- Allow repeating -- Allow repeating
use 'tpope/vim-repeat' use 'tpope/vim-repeat'
-- GLSL language support
use 'tikhomirov/vim-glsl'
-- Treesitter -- Treesitter
use { use {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
@ -74,16 +62,6 @@ local function usePlugins(use, use_rocks)
requires = 'nvim-treesitter/nvim-treesitter', requires = 'nvim-treesitter/nvim-treesitter',
cmd = "TSPlaygroundToggle" cmd = "TSPlaygroundToggle"
} }
-- use {
-- 'RRethy/nvim-treesitter-textsubjects',
-- requires = 'nvim-treesitter/nvim-treesitter',
-- config = [[require 'config.treesitter-textsubjects']],
-- }
-- use {
-- 'nvim-treesitter/nvim-treesitter-textobjects',
-- requires = 'nvim-treesitter/nvim-treesitter',
-- config = [[require 'config.treesitter-textobjects']],
-- }
-- Dev icons -- Dev icons
use {'kyazdani42/nvim-web-devicons', config = [[require('nvim-web-devicons').setup()]]} use {'kyazdani42/nvim-web-devicons', config = [[require('nvim-web-devicons').setup()]]}
@ -101,7 +79,7 @@ local function usePlugins(use, use_rocks)
} }
-- Smooth smooth scrolling -- Smooth smooth scrolling
use 'psliwka/vim-smoothie' use { 'karb94/neoscroll.nvim', config = [[require('neoscroll').setup()]] }
-- Commenting -- Commenting
use { use {
@ -197,7 +175,7 @@ local function usePlugins(use, use_rocks)
-- Color themes -- Color themes
use 'srcery-colors/srcery-vim' use 'srcery-colors/srcery-vim'
use 'morhetz/gruvbox' -- use 'morhetz/gruvbox'
-- use 'tomasr/molokai' -- use 'tomasr/molokai'
-- use 'Mangeshrex/uwu.vim' -- use 'Mangeshrex/uwu.vim'
-- use 'ayu-theme/ayu-vim' -- use 'ayu-theme/ayu-vim'
@ -208,7 +186,6 @@ local function usePlugins(use, use_rocks)
-- use 'fnune/base16-vim' -- use 'fnune/base16-vim'
-- Git integration -- Git integration
use 'antonk52/gitignore-grabber.nvim'
use { 'tpope/vim-fugitive', config = [[require 'config.fugitive']] } use { 'tpope/vim-fugitive', config = [[require 'config.fugitive']] }
use { use {
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
@ -231,9 +208,6 @@ local function usePlugins(use, use_rocks)
-- Analyze startup time -- Analyze startup time
use 'tweekmonster/startuptime.vim' use 'tweekmonster/startuptime.vim'
-- Start screen
-- use { 'glepnir/dashboard-nvim', config = [[require 'config.dashboard']] }
-- Status line and tab line -- Status line and tab line
use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]} use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]}