refactor(plugins): shorter plugin names
This commit is contained in:
parent
1c3138b11d
commit
3233a424e9
5 changed files with 27 additions and 16 deletions
|
@ -1,6 +1,9 @@
|
|||
-- Override Cosmic editor options
|
||||
|
||||
--[[ local opt = vim.opt
|
||||
--[[
|
||||
local opt = vim.opt
|
||||
|
||||
opt.tabstop = 4
|
||||
opt.softtabstop = 4
|
||||
opt.shiftwidth = 4 ]]
|
||||
opt.shiftwidth = 4
|
||||
]]
|
||||
|
|
|
@ -8,12 +8,16 @@
|
|||
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||
},
|
||||
},
|
||||
disable = {
|
||||
'tpope/vim-fugitive',
|
||||
'lewis6991/gitsigns.nvim',
|
||||
'norcalli/nvim-colorizer.lua',
|
||||
'rmagatti/auto-session',
|
||||
'b3nj5m1n/kommentary',
|
||||
disable = { -- disabling some plugins may mean you'll have to remap some keybindings
|
||||
'auto-session',
|
||||
'colorizer',
|
||||
'fugitive',
|
||||
'gitsigns',
|
||||
'kommentary',
|
||||
'treesitter'
|
||||
'telescope'
|
||||
'terminal',
|
||||
'nvim-tree'
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
local cmd = vim.cmd
|
||||
local opt = vim.opt
|
||||
local g = vim.g
|
||||
local indent = 2
|
||||
|
||||
cmd([[
|
||||
|
@ -7,6 +8,8 @@ cmd([[
|
|||
autocmd BufWritePre * :%s/\s\+$//e
|
||||
]])
|
||||
|
||||
g.mapleader = ' '
|
||||
|
||||
-- misc
|
||||
opt.syntax = 'enable'
|
||||
opt.hidden = true
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
local g = vim.g
|
||||
local map = require('cosmic.utils').map
|
||||
|
||||
g.mapleader = ' '
|
||||
|
||||
-- Quickfix
|
||||
map('n', '<leader>ck', ':cexpr []<CR>', { noremap = true })
|
||||
map('n', '<leader>cc', ':cclose <CR>', { noremap = true })
|
||||
|
|
|
@ -73,6 +73,7 @@ return packer.startup(function()
|
|||
'NvimTreeRefresh',
|
||||
'NvimTreeToggle',
|
||||
},
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'nvim-tree'),
|
||||
})
|
||||
|
||||
use({ -- lsp
|
||||
|
@ -111,7 +112,7 @@ return packer.startup(function()
|
|||
'tpope/vim-fugitive',
|
||||
opt = true,
|
||||
cmd = 'Git',
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'tpope/vim-fugitive'),
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'fugitive'),
|
||||
})
|
||||
|
||||
-- git column signs
|
||||
|
@ -122,7 +123,7 @@ return packer.startup(function()
|
|||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end,
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'lewis6991/gitsigns.nvim'),
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'gitsigns'),
|
||||
})
|
||||
|
||||
-- floating terminal
|
||||
|
@ -133,6 +134,7 @@ return packer.startup(function()
|
|||
config = function()
|
||||
require('cosmic.core.terminal')
|
||||
end,
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'terminal'),
|
||||
})
|
||||
|
||||
-- file navigation
|
||||
|
@ -150,6 +152,7 @@ return packer.startup(function()
|
|||
require('cosmic.core.navigation')
|
||||
end,
|
||||
event = 'BufRead',
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'telescope'),
|
||||
})
|
||||
|
||||
-- session management
|
||||
|
@ -161,7 +164,7 @@ return packer.startup(function()
|
|||
pre_save_cmds = { 'NvimTreeClose', 'cclose' },
|
||||
})
|
||||
end,
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'rmagatti/auto-session'),
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'auto-session'),
|
||||
})
|
||||
|
||||
-- lang/syntax stuff
|
||||
|
@ -176,13 +179,14 @@ return packer.startup(function()
|
|||
config = function()
|
||||
require('cosmic.core.treesitter')
|
||||
end,
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'treesitter'),
|
||||
})
|
||||
|
||||
-- comments and stuff
|
||||
use({
|
||||
'b3nj5m1n/kommentary',
|
||||
event = 'BufRead',
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'b3nj5m1n/kommentary'),
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'kommentary'),
|
||||
})
|
||||
|
||||
-- colorized hex codes
|
||||
|
@ -193,7 +197,7 @@ return packer.startup(function()
|
|||
config = function()
|
||||
require('colorizer').setup()
|
||||
end,
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'norcalli/nvim-colorizer.lua'),
|
||||
disable = vim.tbl_contains(user_plugins.disable, 'colorizer'),
|
||||
})
|
||||
|
||||
if user_plugins.add and not vim.tbl_isempty(user_plugins) then
|
||||
|
|
Loading…
Add table
Reference in a new issue