dependency fix.

This commit is contained in:
Gabe Venberg 2023-11-07 11:36:27 -06:00
parent db47c98ee8
commit d7d09574f9

View file

@ -1,374 +1,372 @@
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ vim.fn.system({
'git', 'git',
'clone', 'clone',
'--filter=blob:none', '--filter=blob:none',
'https://github.com/folke/lazy.nvim.git', 'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release '--branch=stable', -- latest stable release
lazypath, lazypath,
}) })
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require('lazy').setup({ require('lazy').setup({
{ {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate', build = ':TSUpdate',
config = function() config = function()
local configs = require('nvim-treesitter.configs') local configs = require('nvim-treesitter.configs')
configs.setup { configs.setup {
ensure_installed = { ensure_installed = {
'c', 'c',
'lua', 'lua',
'vim', 'vim',
'vimdoc', 'vimdoc',
'query', 'query',
'bash', 'bash',
'comment', 'comment',
'cpp', 'cpp',
'diff', 'diff',
'git_config', 'git_config',
'git_rebase', 'git_rebase',
'gitattributes', 'gitattributes',
'gitcommit', 'gitcommit',
'gitignore', 'gitignore',
'json', 'json',
'jsonc', 'jsonc',
'latex', 'latex',
'make', 'make',
'python', 'python',
'regex', 'regex',
'rust', 'rust',
'toml', 'toml',
}, },
auto_install = true, auto_install = true,
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },
incremental_selection = { enable = true } incremental_selection = { enable = true }
} }
end, end,
}, },
{ {
'williamboman/mason.nvim', 'williamboman/mason.nvim',
dependencies = { opts = {
"williamboman/mason-lspconfig.nvim", ui = {
}, icons = {
opts = { package_installed = "",
ui = { package_pending = "",
icons = { package_uninstalled = ""
package_installed = "", }
package_pending = "", }
package_uninstalled = "" }
} },
} {
} "williamboman/mason-lspconfig.nvim",
}, dependencies = {
{ "neovim/nvim-lspconfig",
"williamboman/mason-lspconfig.nvim", 'williamboman/mason.nvim',
dependencies = { },
"neovim/nvim-lspconfig", config = function()
}, require("mason-lspconfig").setup({
config = function() ensure_installed = {
require("mason-lspconfig").setup({ 'lua_ls',
ensure_installed = { 'rust_analyzer',
'lua_ls', 'bashls',
'rust_analyzer', 'pyright',
'bashls', 'ruff_lsp',
'pyright', 'texlab',
'ruff_lsp', 'clangd',
'texlab', },
'clangd', automatic_installation = true
}, })
automatic_installation = true end
}) },
end {
}, "neovim/nvim-lspconfig",
{ config = function()
"neovim/nvim-lspconfig", require('LSPconfig')
config = function() end
require('LSPconfig') },
end {
}, 'simrat39/rust-tools.nvim',
{ },
'simrat39/rust-tools.nvim', {
}, 'hrsh7th/nvim-cmp',
{ config = function()
'hrsh7th/nvim-cmp', require('cmp-lsp')
config = function() end,
require('cmp-lsp') dependencies = {
end, 'neovim/nvim-lspconfig',
dependencies = { 'hrsh7th/cmp-nvim-lsp',
'neovim/nvim-lspconfig', 'saadparwaiz1/cmp_luasnip',
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-buffer',
'saadparwaiz1/cmp_luasnip', 'hrsh7th/cmp-path',
'hrsh7th/cmp-buffer', 'hrsh7th/cmp-cmdline',
'hrsh7th/cmp-path', 'L3MON4D3/LuaSnip',
'hrsh7th/cmp-cmdline', 'f3fora/cmp-spell',
'L3MON4D3/LuaSnip', 'dmitmel/cmp-digraphs',
'f3fora/cmp-spell', 'hrsh7th/cmp-nvim-lsp-signature-help',
'dmitmel/cmp-digraphs', 'kdheepak/cmp-latex-symbols',
'hrsh7th/cmp-nvim-lsp-signature-help', 'hrsh7th/cmp-emoji',
'kdheepak/cmp-latex-symbols', 'ray-x/cmp-treesitter',
'hrsh7th/cmp-emoji', 'uga-rosa/cmp-dictionary',
'ray-x/cmp-treesitter', }
'uga-rosa/cmp-dictionary', },
} {
}, 'L3MON4D3/LuaSnip',
{ dependencies = {
'L3MON4D3/LuaSnip', 'rafamadriz/friendly-snippets'
dependencies = { },
'rafamadriz/friendly-snippets' config = function()
}, require("luasnip.loaders.from_snipmate").load()
config = function() require("luasnip.loaders.from_vscode").load()
require("luasnip.loaders.from_snipmate").load() end
require("luasnip.loaders.from_vscode").load() },
end {
}, 'nvim-telescope/telescope.nvim',
{ config = true,
'nvim-telescope/telescope.nvim', dependencies = {
config = true, 'nvim-lua/popup.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter',
'nvim-lua/popup.nvim', 'nvim-telescope/telescope-symbols.nvim',
'nvim-treesitter/nvim-treesitter', 'nvim-telescope/telescope-file-browser.nvim',
'nvim-telescope/telescope-symbols.nvim', }
'nvim-telescope/telescope-file-browser.nvim', },
} {
}, "folke/todo-comments.nvim",
{ dependencies = { "nvim-lua/plenary.nvim" },
"folke/todo-comments.nvim", },
dependencies = { "nvim-lua/plenary.nvim" }, {
}, 'kyazdani42/nvim-tree.lua',
{ config = true,
'kyazdani42/nvim-tree.lua', dependencies = {
config = true, 'kyazdani42/nvim-web-devicons', -- optional, for file icon
dependencies = { },
'kyazdani42/nvim-web-devicons', -- optional, for file icon },
}, {
}, 'ggandor/leap.nvim',
{ config = function()
'ggandor/leap.nvim', require('leap').add_default_mappings()
config = function() end
require('leap').add_default_mappings() },
end {
}, 'folke/which-key.nvim',
{ config = function()
'folke/which-key.nvim', vim.o.timeout = true
config = function() vim.o.timeoutlen = 300
vim.o.timeout = true -- default kemaps that whitch-key misses.
vim.o.timeoutlen = 300 local wk = require("which-key")
-- default kemaps that whitch-key misses. wk.register {
local wk = require("which-key") g = {
wk.register { t = "next tab",
g = { T = "previous tab"
t = "next tab", },
T = "previous tab" }
}, require("which-key").setup {
} -- your configuration comes here
require("which-key").setup { -- or leave it empty to use the default settings
-- your configuration comes here -- refer to the configuration section below
-- or leave it empty to use the default settings -- local wk = require("which-key")
-- refer to the configuration section below }
-- local wk = require("which-key") end
} },
end {
}, "akinsho/toggleterm.nvim",
{ opts = {
"akinsho/toggleterm.nvim", insert_mappings = false,
opts = { terminal_mappings = false,
insert_mappings = false, open_mapping = [[<c-\>]],
terminal_mappings = false, }
open_mapping = [[<c-\>]], },
} {
}, 'simrat39/symbols-outline.nvim',
{ opts = {
'simrat39/symbols-outline.nvim', highlight_hovered_item = true,
opts = { show_guides = true,
highlight_hovered_item = true, auto_preview = false,
show_guides = true, position = 'right',
auto_preview = false, relative_width = true,
position = 'right', width = 30,
relative_width = true, auto_close = false,
width = 30, show_numbers = false,
auto_close = false, show_relative_numbers = false,
show_numbers = false, show_symbol_details = true,
show_relative_numbers = false, preview_bg_highlight = 'Pmenu',
show_symbol_details = true, autofold_depth = nil,
preview_bg_highlight = 'Pmenu', auto_unfold_hover = true,
autofold_depth = nil, fold_markers = { '', '' },
auto_unfold_hover = true, wrap = false,
fold_markers = { '', '' }, }
wrap = false, },
} {
}, 'stevearc/dressing.nvim',
{ config = true,
'stevearc/dressing.nvim', },
config = true, {
}, 'nvim-lualine/lualine.nvim',
{ dependencies = { 'kyazdani42/nvim-web-devicons' },
'nvim-lualine/lualine.nvim', opts = {
dependencies = { 'kyazdani42/nvim-web-devicons' }, options = {
opts = { icons_enabled = true,
options = { theme = 'auto',
icons_enabled = true, component_separators = { left = '', right = '' },
theme = 'auto', section_separators = { left = '', right = '' },
component_separators = { left = '', right = '' }, disabled_filetypes = {},
section_separators = { left = '', right = '' }, always_divide_middle = true,
disabled_filetypes = {}, },
always_divide_middle = true, sections = {
}, lualine_a = { 'mode' },
sections = { lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_a = { 'mode' }, lualine_c = { { 'filename', path = 1, } },
lualine_b = { 'branch', 'diff', 'diagnostics' }, lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_c = { { 'filename', path = 1, } }, lualine_y = { 'progress' },
lualine_x = { 'encoding', 'fileformat', 'filetype' }, lualine_z = { 'location' }
lualine_y = { 'progress' }, },
lualine_z = { 'location' } inactive_sections = {
}, lualine_a = {},
inactive_sections = { lualine_b = {},
lualine_a = {}, lualine_c = { 'filename' },
lualine_b = {}, lualine_x = { 'location' },
lualine_c = { 'filename' }, lualine_y = {},
lualine_x = { 'location' }, lualine_z = {}
lualine_y = {}, },
lualine_z = {} tabline = {
}, lualine_a = { { 'buffers', mode = 4 } },
tabline = { lualine_b = {},
lualine_a = { { 'buffers', mode = 4 } }, lualine_c = {},
lualine_b = {}, lualine_x = {},
lualine_c = {}, lualine_y = {},
lualine_x = {}, lualine_z = { { 'tabs', mode = 2 } }
lualine_y = {}, },
lualine_z = { { 'tabs', mode = 2 } } winbar = {
}, lualine_a = {},
winbar = { lualine_b = {},
lualine_a = {}, lualine_c = {},
lualine_b = {}, lualine_x = {},
lualine_c = {}, lualine_y = {},
lualine_x = {}, lualine_z = {}
lualine_y = {}, },
lualine_z = {} inactive_winbar = {
}, lualine_a = {},
inactive_winbar = { lualine_b = {},
lualine_a = {}, lualine_c = {},
lualine_b = {}, lualine_x = {},
lualine_c = {}, lualine_y = {},
lualine_x = {}, lualine_z = {}
lualine_y = {}, },
lualine_z = {} extensions = {}
}, },
extensions = {}
},
}, },
{ {
'romgrk/nvim-treesitter-context', 'romgrk/nvim-treesitter-context',
dependencies = { 'nvim-treesitter/nvim-treesitter' }, dependencies = { 'nvim-treesitter/nvim-treesitter' },
opts = { opts = {
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
zindex = 200, -- The Z-index of the context window zindex = 200, -- The Z-index of the context window
mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline' mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline'
-- Separator between context and content. Should be a single character string, like '-'. -- Separator between context and content. Should be a single character string, like '-'.
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline. -- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
separator = nil, separator = nil,
} }
}, },
{ {
'hiphish/rainbow-delimiters.nvim', 'hiphish/rainbow-delimiters.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter' }, dependencies = { 'nvim-treesitter/nvim-treesitter' },
config = function() config = function()
local rainbow_delimiters = require 'rainbow-delimiters' local rainbow_delimiters = require 'rainbow-delimiters'
vim.g.rainbow_delimiters = { vim.g.rainbow_delimiters = {
strategy = { strategy = {
[''] = rainbow_delimiters.strategy['global'], [''] = rainbow_delimiters.strategy['global'],
}, },
query = { query = {
[''] = 'rainbow-delimiters', [''] = 'rainbow-delimiters',
lua = 'rainbow-blocks', lua = 'rainbow-blocks',
}, },
highlight = { highlight = {
'RainbowDelimiterViolet', 'RainbowDelimiterViolet',
'RainbowDelimiterCyan', 'RainbowDelimiterCyan',
'RainbowDelimiterYellow', 'RainbowDelimiterYellow',
'RainbowDelimiterBlue', 'RainbowDelimiterBlue',
'RainbowDelimiterOrange', 'RainbowDelimiterOrange',
'RainbowDelimiterGreen', 'RainbowDelimiterGreen',
-- 'RainbowDelimiterRed', -- 'RainbowDelimiterRed',
} }
} }
end end
}, },
{ {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
main = "ibl", main = "ibl",
opts = {} opts = {}
}, },
{ {
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
config = true, config = true,
}, },
{ {
'chentoast/marks.nvim', 'chentoast/marks.nvim',
config = true config = true
}, },
'sitiom/nvim-numbertoggle', 'sitiom/nvim-numbertoggle',
{ {
'numToStr/Comment.nvim', 'numToStr/Comment.nvim',
config = true, config = true,
}, },
{ {
'Wansmer/treesj', 'Wansmer/treesj',
dependencies = { 'nvim-treesitter' }, dependencies = { 'nvim-treesitter' },
opts = { opts = {
-- Use default keymaps -- Use default keymaps
-- (<space>m - toggle, <space>j - join, <space>s - split) -- (<space>m - toggle, <space>j - join, <space>s - split)
use_default_keymaps = false, use_default_keymaps = false,
max_join_length = 256, max_join_length = 256,
} }
}, },
"jbyuki/venn.nvim", "jbyuki/venn.nvim",
--colorscheme --colorscheme
{ {
'bluz71/vim-moonfly-colors', 'bluz71/vim-moonfly-colors',
lazy = true, lazy = true,
}, },
{ {
'bluz71/vim-nightfly-guicolors', 'bluz71/vim-nightfly-guicolors',
lazy = true, lazy = true,
}, },
{ {
'AlexvZyl/nordic.nvim', 'AlexvZyl/nordic.nvim',
lazy = true, lazy = true,
}, },
{ {
'savq/melange-nvim', 'savq/melange-nvim',
lazy = true, lazy = true,
}, },
{ {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
lazy = true, lazy = true,
}, },
{ {
'nyoom-engineering/oxocarbon.nvim', 'nyoom-engineering/oxocarbon.nvim',
lazy = true, lazy = true,
}, },
{ {
"catppuccin/nvim", "catppuccin/nvim",
name = "catppuccin", name = "catppuccin",
lazy = true, lazy = true,
}, },
{ {
'rebelot/kanagawa.nvim', 'rebelot/kanagawa.nvim',
lazy = true, lazy = true,
}, },
{ {
'ellisonleao/gruvbox.nvim', 'ellisonleao/gruvbox.nvim',
lazy = true, lazy = true,
}, },
}) })