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