lsptimeout n stuff

This commit is contained in:
Christian Nieves
2023-11-08 13:01:41 -06:00
parent f818261be2
commit f129f0f93d
8 changed files with 132 additions and 17 deletions

View File

@ -54,7 +54,7 @@ return {
local cmp = require("cmp")
local conditionalSources = {
{ name = "nvim_lsp", max_item_count = 5, priority = 8 },
{ name = "nvim_lsp", max_item_count = 15, priority = 8 },
{ name = "treesitter", max_item_count = 5, priority = 7 },
{ name = "luasnip", max_item_count = 5, priority = 6 },
{ name = "calc" },

View File

@ -99,13 +99,6 @@ return {
end,
lazy = false,
},
{
"flwyd/vim-imp",
lazy = false,
keys = {
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
},
},
{
name = "ai.nvim",
url = "sso://googler@user/vvvv/ai.nvim",

View File

@ -0,0 +1,6 @@
return {
"flwyd/vim-imp",
keys = {
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
},
}

View File

@ -7,13 +7,11 @@ return {
require("lsp-lens").setup({
enable = true,
include_declaration = false, -- Reference include declaration
sections = { -- Enable / Disable specific request
sections = { -- Enable / Disable specific request, formatter example looks 'Format Requests'
definition = false,
references = true,
implementation = true,
},
ignore_filetype = {
"prisma",
implements = true,
git_authors = true,
},
})
end,

View File

@ -22,6 +22,10 @@ return {
end,
dependencies = { "rafamadriz/friendly-snippets" },
},
{
"hinell/lsp-timeout.nvim",
dependencies = { "neovim/nvim-lspconfig" },
},
{
"neovim/nvim-lspconfig",
dependencies = deps,

View File

@ -3,10 +3,10 @@ return {
event = "VimEnter",
lazy = true,
config = function()
local colors = require("catppuccin.palettes").get_palette()
-- local colors = require("catppuccin.palettes").get_palette()
require("notify").setup({
background_colour = colors.base,
fps = 10, -- default 30
-- background_colour = colors.base,
fps = 20, -- default 30
stages = "slide", -- default fade_in_slide_out
timeout = 5000, -- default 5000
})

View File

@ -0,0 +1,113 @@
local use_google = require("utils").use_google
return {
{
"rebelot/kanagawa.nvim",
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
cond = not use_google(),
cond = false,
config = function()
-- vim.cmd("colorscheme kanagawa")
end,
},
{
"nyoom-engineering/oxocarbon.nvim",
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
cond = not use_google(),
config = function()
vim.cmd("colorscheme oxocarbon")
end,
},
{
"uloco/bluloco.nvim",
dependencies = { "rktjmp/lush.nvim" },
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
cond = not use_google(),
config = function()
-- vim.cmd("colorscheme bluloco")
end,
},
{
"catppuccin/nvim",
name = "catppuccin",
lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
cond = use_google(),
config = function()
vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
local colors = require("catppuccin.palettes").get_palette()
require("catppuccin").setup({
flavour = "macchiato",
integrations = {
cmp = true,
-- coc_nvim = false,
dashboard = true,
-- fern = false,
fidget = true,
gitgutter = true,
gitsigns = true,
-- hop = false,
-- illuminate = false,
-- leap = false,
-- lightspeed = false,
-- lsp_saga = false,
lsp_trouble = true,
mason = true,
markdown = true,
-- neogit = false,
-- neotest = false,
neotree = true,
notify = true,
-- nvimtree = true,
-- overseer = false,
-- pounce = false,
symbols_outline = true,
telescope = true,
treesitter = true,
treesitter_context = false,
-- ts_rainbow = false,
-- vim_sneak = false,
-- vimwiki = false,
which_key = true,
-- Special integrations, see https://github.com/catppuccin/nvim#special-integrations
dap = {
enabled = false,
enable_ui = false,
},
indent_blankline = {
enabled = true,
colored_indent_levels = false,
},
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
},
},
},
custom_highlights = {
Identifier = { fg = colors.lavender },
Statement = { fg = colors.rosewater },
-- Identifier = { fg = colors.sapphire },
Function = { fg = colors.mauve },
},
})
vim.api.nvim_command("colorscheme catppuccin")
end,
},
}