1
0
Fork 0

add some new plugins

This commit is contained in:
Luca Bilke 2022-10-13 17:04:49 +02:00
parent 2b3c3fc4ae
commit ce5f0cf8e9
7 changed files with 40 additions and 4 deletions

View file

@ -1,2 +0,0 @@
TODO: Carry over some of the old plugins
TODO: Set up whichkey

View file

@ -19,4 +19,6 @@ require 'user.plugins.impatient'
require 'user.plugins.illuminate'
require 'user.plugins.indentline'
require 'user.plugins.alpha'
require 'user.plugins.nvim-colorizer'
require 'user.plugins.todo-comments'
require 'user.adapters'

View file

@ -51,8 +51,8 @@ return {
prefix = "<leader>",
buffer = nil,
silent = true,
noremap = true, -- use `noremap` when creating keymaps
nowait = true, -- use `nowait` when creating keymaps
noremap = true,
nowait = true,
},
nopts = {
mode = "n",
@ -93,6 +93,11 @@ return {
S = { "<cmd>PackerStatus<cr>", "Status" },
u = { "<cmd>PackerUpdate<cr>", "Update" },
},
t = {
name = "Todo Comments",
j = { require("todo-comments").jump_next, "Next Comment" },
k = { require("todo-comments").jump_prev, "Previous Comment" },
},
g = {
name = "Git",
j = { require("gitsigns").next_hunk, "Next Hunk" },

View file

@ -27,6 +27,12 @@ return {
'folke/which-key.nvim',
'felipec/vim-sanegx',
'sindrets/diffview.nvim',
'folke/todo-comments.nvim',
'felipec/vim-sanegx',
'norcalli/nvim-colorizer.lua',
'fladson/vim-kitty',
'tpope/vim-surround',
'tpope/vim-repeat',
-- Color Schemes,
'folke/tokyonight.nvim',
-- Completion,

View file

@ -0,0 +1,14 @@
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
})

View file

@ -0,0 +1,6 @@
local status_ok, todocomments = pcall(require, "todo-comments")
if not status_ok then
return
end
todocomments.setup {}

View file

@ -239,6 +239,11 @@ _G.packer_plugins = {
path = "/home/luca/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
["todo-comments.nvim"] = {
loaded = true,
path = "/home/luca/.local/share/nvim/site/pack/packer/start/todo-comments.nvim",
url = "https://github.com/folke/todo-comments.nvim"
},
["toggleterm.nvim"] = {
loaded = true,
path = "/home/luca/.local/share/nvim/site/pack/packer/start/toggleterm.nvim",