Added new plugins and themes
This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
--- @type LazyPluginSpec[]
|
--- @type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"b0o/lavi.nvim",
|
||||||
|
dependencies = { "rktjmp/lush.nvim" },
|
||||||
|
priority = 1000,
|
||||||
|
event = "User ThemeSwitcher",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pauchiner/pastelnight.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
event = "User ThemeSwitcher",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"JoosepAlviste/palenightfall.nvim",
|
"JoosepAlviste/palenightfall.nvim",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
|
|||||||
@@ -5,11 +5,13 @@ return {
|
|||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
"dmmulroy/ts-error-translator.nvim",
|
||||||
},
|
},
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
local typescript_tools = require("typescript-tools")
|
local typescript_tools = require("typescript-tools")
|
||||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
||||||
|
local tserrortranslator = require("ts-error-translator")
|
||||||
|
|
||||||
local on_attach = require("taken.utils.on_attach")
|
local on_attach = require("taken.utils.on_attach")
|
||||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
local capabilities = cmp_nvim_lsp.default_capabilities()
|
||||||
@@ -62,5 +64,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
tserrortranslator.setup()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ return {
|
|||||||
local luasnip = require("luasnip")
|
local luasnip = require("luasnip")
|
||||||
local lspkind = require("lspkind")
|
local lspkind = require("lspkind")
|
||||||
|
|
||||||
require("luasnip/loaders/from_vscode").lazy_load()
|
require("luasnip/loaders/from_vscode").lazy_load({ paths = { "~/.snippets/" } })
|
||||||
|
|
||||||
vim.opt.completeopt = "menu,menuone,noselect"
|
vim.opt.completeopt = "menu,menuone,noselect"
|
||||||
|
|
||||||
@@ -53,18 +53,18 @@ return {
|
|||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
["<C-p>"] = cmp.mapping.select_prev_item(), -- previous suggestion
|
["<C-p>"] = cmp.mapping.select_prev_item(),
|
||||||
["<C-n>"] = cmp.mapping.select_next_item(), -- next suggestion
|
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||||
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||||
["<Tab>"] = nil,
|
["<Tab>"] = nil,
|
||||||
["<S-Tab>"] = nil,
|
["<S-Tab>"] = nil,
|
||||||
}),
|
}),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp" }, -- lsp
|
{ name = "nvim_lsp" },
|
||||||
{ name = "luasnip" }, -- snippets
|
{ name = "luasnip" },
|
||||||
{ name = "buffer" }, -- text within current buffer
|
{ name = "buffer" },
|
||||||
{ name = "path" }, -- file system paths
|
{ name = "path" },
|
||||||
}),
|
}),
|
||||||
formatting = {
|
formatting = {
|
||||||
format = lspkind.cmp_format({
|
format = lspkind.cmp_format({
|
||||||
|
|||||||
@@ -1,5 +1,28 @@
|
|||||||
--- @type LazyPluginSpec[]
|
--- @type LazyPluginSpec[]
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"chrisgrieser/nvim-scissors",
|
||||||
|
dependencies = "nvim-telescope/telescope.nvim",
|
||||||
|
config = function()
|
||||||
|
local scissors = require("scissors")
|
||||||
|
|
||||||
|
scissors.setup({
|
||||||
|
snippetDir = "~/.snippets/",
|
||||||
|
editSnippetPopup = {
|
||||||
|
keymaps = {
|
||||||
|
deleteSnippet = "<C-d>",
|
||||||
|
duplicateSnippet = "<C-y>",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"zeioth/garbage-day.nvim",
|
||||||
|
dependencies = "neovim/nvim-lspconfig",
|
||||||
|
event = "VeryLazy",
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"wakatime/vim-wakatime",
|
"wakatime/vim-wakatime",
|
||||||
name = "Wakatime",
|
name = "Wakatime",
|
||||||
|
|||||||
Reference in New Issue
Block a user