cleanup
This commit is contained in:
parent
999b7f3dba
commit
642d8ad88d
|
@ -51,13 +51,13 @@ M.list = {
|
|||
end
|
||||
}
|
||||
},
|
||||
{
|
||||
{ "BufDelete", "VimLeave" },
|
||||
{
|
||||
pattern = "*.tex",
|
||||
command = "!texclear \"%:p\""
|
||||
}
|
||||
},
|
||||
-- {
|
||||
-- { "BufDelete", "VimLeave" },
|
||||
-- {
|
||||
-- pattern = "*.tex",
|
||||
-- command = "!texclear \"%:p\""
|
||||
-- }
|
||||
-- },
|
||||
{ -- Use 'q' to quit from common plugins
|
||||
'FileType',
|
||||
{
|
||||
|
|
|
@ -3,14 +3,9 @@ local M = {}
|
|||
local maps = {
|
||||
general = {
|
||||
n = {
|
||||
-- Resize windows with arrows
|
||||
{ "<C-Up>", ":resize -2<CR>" },
|
||||
{ "<C-Down>", ":resize +2<CR>" },
|
||||
{ "<C-Left>", ":vertical resize -2<CR>" },
|
||||
{ "<C-Right>", ":vertical resize +2<CR>" },
|
||||
-- Navigate buffers
|
||||
{ "<TAB>", ":bnext<CR>" },
|
||||
{ "<S-TAB>", ":bprevious<CR>" },
|
||||
{ "<C-l>", ":bnext<CR>" },
|
||||
{ "<C-h>", ":bprevious<CR>" },
|
||||
-- lsp
|
||||
{ "gD", vim.lsp.buf.declaration },
|
||||
{ "gd", vim.lsp.buf.definition },
|
||||
|
@ -33,8 +28,10 @@ local maps = {
|
|||
},
|
||||
bufferline = {
|
||||
n = {
|
||||
{ "<TAB>", "<cmd>BufferLineCycleNext<CR>" },
|
||||
{ "<S-TAB>", "<cmd>BufferLineCyclePrev<CR>" },
|
||||
{ "<C-l>", "<cmd>BufferLineCycleNext<CR>" },
|
||||
{ "<C-h>", "<cmd>BufferLineCyclePrev<CR>" },
|
||||
{ "<A-l>", "<cmd>BufferLineMoveNext<CR>" },
|
||||
{ "<A-h>", "<cmd>BufferLineMovePrev<CR>" },
|
||||
}
|
||||
},
|
||||
blankline = {
|
||||
|
@ -115,14 +112,12 @@ local wkmaps = {
|
|||
n = {
|
||||
b = {
|
||||
name = "Buffers",
|
||||
j = { "<cmd>BufferLinePick<CR>", "Jump" },
|
||||
b = { "<cmd>BufferLineCyclePrev<CR>", "Previous" },
|
||||
n = { "<cmd>BufferLineCycleNext<CR>", "Next" },
|
||||
g = { "<cmd>BufferLinePick<CR>", "Goto" },
|
||||
e = { "<cmd>BufferLinePickClose<CR>", "Pick which buffer to close" },
|
||||
h = { "<cmd>BufferLineCloseLeft<CR>", "Close all to the left" },
|
||||
l = { "<cmd>BufferLineCloseRight<CR>", "Close all to the right" },
|
||||
D = { "<cmd>BufferLineSortByDirectory<CR>", "Sort by directory" },
|
||||
L = { "<cmd>BufferLineSortByExtension<CR>", "Sort by language" },
|
||||
L = { "<cmd>BufferLineSortByExtension<CR>", "Sort by extension" },
|
||||
},
|
||||
}
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@ local o = vim.opt
|
|||
local g = vim.g
|
||||
|
||||
g.mapleader = " "
|
||||
g.maplocalleader = ","
|
||||
g.maplocalleader = " "
|
||||
|
||||
o.undodir = vim.fn.stdpath "cache" .. "/undo"
|
||||
o.clipboard = "unnamedplus"
|
||||
|
|
|
@ -1,68 +1,79 @@
|
|||
local icons = require('config.icons').list
|
||||
local plugins = {
|
||||
{ "wbthomason/packer.nvim",
|
||||
{
|
||||
"wbthomason/packer.nvim",
|
||||
config = function()
|
||||
require('config.keymaps').map("packer")
|
||||
end
|
||||
},
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "lewis6991/impatient.nvim" },
|
||||
{ "lervag/vimtex",
|
||||
{
|
||||
"lervag/vimtex",
|
||||
setup = function()
|
||||
vim.g.vimtex_view_method = "zathura"
|
||||
end,
|
||||
config = function()
|
||||
require('config.keymaps').map("vimtex")
|
||||
end,
|
||||
|
||||
},
|
||||
{ "kylechui/nvim-surround",
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
config = function()
|
||||
require('plugins.nvim-surround')
|
||||
end
|
||||
},
|
||||
{ "fladson/vim-kitty",
|
||||
{
|
||||
"fladson/vim-kitty",
|
||||
ft = "kitty"
|
||||
},
|
||||
{ "kyazdani42/nvim-web-devicons" },
|
||||
{ "felipec/vim-sanegx",
|
||||
{
|
||||
"felipec/vim-sanegx",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
},
|
||||
{ "folke/which-key.nvim",
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
require('plugins.whichkey')
|
||||
end,
|
||||
},
|
||||
{ "folke/tokyonight.nvim",
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
config = function()
|
||||
require('plugins.tokyonight')
|
||||
end
|
||||
},
|
||||
{ "folke/todo-comments.nvim",
|
||||
{
|
||||
"folke/todo-comments.nvim",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.todo-comments')
|
||||
end
|
||||
},
|
||||
{ "akinsho/bufferline.nvim",
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.bufferline')
|
||||
require('config.keymaps').map("bufferline")
|
||||
end,
|
||||
},
|
||||
{ "nvim-lualine/lualine.nvim",
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.lualine')
|
||||
end,
|
||||
},
|
||||
{ "akinsho/toggleterm.nvim",
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
config = function()
|
||||
require('plugins.toggleterm')
|
||||
end,
|
||||
},
|
||||
{ "lukas-reineke/indent-blankline.nvim",
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
after = "nvim-treesitter",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
|
@ -70,20 +81,16 @@ local plugins = {
|
|||
require('config.keymaps').map("blankline")
|
||||
end,
|
||||
},
|
||||
{ "norcalli/nvim-colorizer.lua",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.nvim-colorizer')
|
||||
end,
|
||||
},
|
||||
{ "RRethy/vim-illuminate",
|
||||
{
|
||||
"RRethy/vim-illuminate",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.illuminate')
|
||||
require('config.keymaps').map("illuminate")
|
||||
end,
|
||||
},
|
||||
{ "nvim-treesitter/nvim-treesitter",
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
cmd = {
|
||||
"TSInstall",
|
||||
|
@ -98,7 +105,8 @@ local plugins = {
|
|||
require('plugins.treesitter')
|
||||
end,
|
||||
},
|
||||
{ "lewis6991/gitsigns.nvim",
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
ft = "gitcommit",
|
||||
setup = function()
|
||||
vim.api.nvim_create_autocmd({ "BufRead" }, {
|
||||
|
@ -118,7 +126,8 @@ local plugins = {
|
|||
require('plugins.gitsigns')
|
||||
end,
|
||||
},
|
||||
{ "williamboman/mason.nvim",
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
setup = function()
|
||||
require('config.keymaps').map("mason")
|
||||
end,
|
||||
|
@ -127,7 +136,8 @@ local plugins = {
|
|||
end,
|
||||
},
|
||||
{ "williamboman/mason-lspconfig.nvim" },
|
||||
{ "neovim/nvim-lspconfig",
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
after = "mason-lspconfig.nvim",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
|
@ -135,63 +145,72 @@ local plugins = {
|
|||
require('config.keymaps').map("lspconfig")
|
||||
end,
|
||||
},
|
||||
{ "jose-elias-alvarez/null-ls.nvim",
|
||||
{
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
config = function()
|
||||
require('plugins.null-ls')
|
||||
end,
|
||||
},
|
||||
{ "rcarriga/nvim-dap-ui",
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
after = "nvim-dap",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.dapui')
|
||||
end,
|
||||
},
|
||||
{ "mfussenegger/nvim-dap",
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.dap')
|
||||
require('config.keymaps').map("dap")
|
||||
end,
|
||||
},
|
||||
{ "hrsh7th/nvim-cmp",
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
config = function()
|
||||
require('plugins.cmp')
|
||||
end,
|
||||
},
|
||||
{ "L3MON4D3/LuaSnip",
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
after = "nvim-cmp",
|
||||
run = "make install_jsregexp",
|
||||
config = function()
|
||||
require('plugins.luasnip')
|
||||
end,
|
||||
},
|
||||
{ "saadparwaiz1/cmp_luasnip", after = "LuaSnip" },
|
||||
{ "hrsh7th/cmp-nvim-lua", after = "cmp_luasnip" },
|
||||
{ "hrsh7th/cmp-nvim-lsp", after = "cmp-nvim-lua" },
|
||||
{ "hrsh7th/cmp-buffer", after = "cmp-nvim-lsp" },
|
||||
{ "hrsh7th/cmp-path", after = "cmp-buffer" },
|
||||
{ "saadparwaiz1/cmp_luasnip", after = "LuaSnip" },
|
||||
{ "hrsh7th/cmp-nvim-lua", after = "cmp_luasnip" },
|
||||
{ "hrsh7th/cmp-nvim-lsp", after = "cmp-nvim-lua" },
|
||||
{ "hrsh7th/cmp-buffer", after = "cmp-nvim-lsp" },
|
||||
{ "hrsh7th/cmp-path", after = "cmp-buffer" },
|
||||
{ "onsails/lspkind.nvim" },
|
||||
{ "windwp/nvim-autopairs",
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
after = "nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require('plugins.autopairs')
|
||||
end,
|
||||
},
|
||||
{ "goolord/alpha-nvim",
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
config = function()
|
||||
require('plugins.alpha')
|
||||
end,
|
||||
},
|
||||
{ "numToStr/Comment.nvim",
|
||||
{
|
||||
"numToStr/Comment.nvim",
|
||||
event = { "BufRead", "BufWinEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require('plugins.comment')
|
||||
require('config.keymaps').map("comment")
|
||||
end,
|
||||
},
|
||||
{ "lmburns/lf.nvim",
|
||||
{
|
||||
"lmburns/lf.nvim",
|
||||
commit = "383429497292dd8a84271e74a81c6db6993ca7ab",
|
||||
config = function()
|
||||
require('plugins.lf')
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
local status_ok, colorizer = pcall(require, 'colorizer')
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
colorizer.setup({ '*' }, {
|
||||
RGB = true, -- #RGB hex codes
|
||||
RRGGBB = true, -- #RRGGBB hex codes
|
||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
rgb_fn = true, -- CSS rgb() and rgba() functions
|
||||
hsl_fn = true, -- CSS hsl() and hsla() functions
|
||||
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||
})
|
Loading…
Reference in New Issue