update plugins

This commit is contained in:
Alexander Navarro 2023-04-27 12:28:45 -04:00
parent 421382f27c
commit 01d3154218
7 changed files with 110 additions and 29 deletions

View file

@ -1,30 +1,32 @@
local colorscheme = "rose-pine"
local colorscheme = "onedark"
return {
"rose-pine/neovim",
name = colorscheme,
"olimorris/onedarkpro.nvim",
priority = 1000,
config = function(_, opts)
require(colorscheme).setup(opts)
vim.cmd.colorscheme(colorscheme)
end,
opts = {
--- @usage 'auto'|'main'|'moon'|'dawn'
variant = "moon",
--- @usage 'main'|'moon'|'dawn'
dark_variant = "moon",
--- @usage string hex value or named color from rosepinetheme.com/palette
groups = {
background = "none",
options = {
transparency = true, -- Use a transparentbackground?
},
-- Change specific vim highlight groups
-- https://github.com/rose-pine/neovim/wiki/Recipes
highlight_groups = {
TelescopeBorder = { fg = "highlight_high", bg = "none" },
TelescopeNormal = { bg = "none" },
TelescopePromptNormal = { bg = "base" },
TelescopeResultsNormal = { fg = "subtle", bg = "none" },
TelescopeSelection = { fg = "text", bg = "base" },
TelescopeSelectionCaret = { fg = "rose", bg = "rose" },
colors = {
bg = "#000000",
fg = "#abb2bf",
red = "#ef596f",
orange = "#fab387",
yellow = "#e5c07b",
green = "#89ca78",
cyan = "#2bbac5",
blue = "#61afef",
purple = "#d55fde",
white = "#abb2bf",
black = "#000000",
gray = "#434852",
highlight = "#e2be7d",
comment = "#7f848e",
none = "NONE",
},
},
config = function(_, opts)
require("onedarkpro").setup(opts)
vim.cmd.colorscheme(colorscheme)
end,
}

View file

@ -31,6 +31,15 @@ return {
dependencies = { "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip" },
},
{
"jay-babu/mason-null-ls.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
"williamboman/mason.nvim",
"jose-elias-alvarez/null-ls.nvim",
},
},
{
-- Useful plugin to show you pending keybinds.
"folke/which-key.nvim",

View file

@ -0,0 +1,14 @@
return {
"ray-x/lsp_signature.nvim",
lazy = false, -- Doesn't work if lazy loaded
opts = {
hint_enable = false,
},
keys = {
{
"<leader>lk",
vim.lsp.buf.signature_help,
desc = "Toggle signature",
},
},
}

View file

@ -0,0 +1,13 @@
return {
"chrisgrieser/nvim-spider",
event = "VeryLazy",
config = function()
require("spider").setup({
skipInsignificantPunctuation = false,
})
vim.keymap.set({ "n", "o", "x" }, "w", "<cmd>lua require('spider').motion('w')<CR>", { desc = "Spider-w" })
vim.keymap.set({ "n", "o", "x" }, "e", "<cmd>lua require('spider').motion('e')<CR>", { desc = "Spider-e" })
vim.keymap.set({ "n", "o", "x" }, "b", "<cmd>lua require('spider').motion('b')<CR>", { desc = "Spider-b" })
vim.keymap.set({ "n", "o", "x" }, "ge", "<cmd>lua require('spider').motion('ge')<CR>", { desc = "Spider-ge" })
end,
}