This commit is contained in:
Christian Nieves
2023-05-10 12:44:47 -05:00
parent b78fa468a5
commit def1f00828
3 changed files with 152 additions and 149 deletions

View File

@ -11,6 +11,7 @@ if not vim.loop.fs_stat(lazypath) then
}) })
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
vim.opt.rtp:prepend("$HOME/.vim/lua")
-- Example using a list of specs with the default options -- Example using a list of specs with the default options
vim.g.mapleader = "," -- Make sure to set `mapleader` before lazy so your mappings are correct vim.g.mapleader = "," -- Make sure to set `mapleader` before lazy so your mappings are correct
@ -66,6 +67,7 @@ require("lazy").setup({
-- Completion and linting -- Completion and linting
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
{ {
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
dependencies = { dependencies = {
@ -82,24 +84,25 @@ require("lazy").setup({
'hrsh7th/cmp-vsnip', 'hrsh7th/cmp-vsnip',
'ray-x/cmp-treesitter', 'ray-x/cmp-treesitter',
}, },
event = 'InsertEnter',
config = function() require("config.lsp") end, config = function() require("config.lsp") end,
}, },
{ {
"tzachar/cmp-tabnine", run = "./install.sh", "tzachar/cmp-tabnine", build = "./install.sh",
event = 'InsertEnter', event = 'InsertEnter',
cond = not use_google(), cond = not use_google(),
}, },
{ 'ErichDonGubler/lsp_lines.nvim', config = function() require("lsp_lines").setup() end }, { 'ErichDonGubler/lsp_lines.nvim', config = function() require("lsp_lines").setup() end },
{
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
'VonHeikemen/lsp-zero.nvim',
},
{ {
'jose-elias-alvarez/null-ls.nvim', 'jose-elias-alvarez/null-ls.nvim',
config = function() require("config.null-ls") end, config = function() require("config.null-ls") end,
}, },
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
'VonHeikemen/lsp-zero.nvim',
{ {
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
cmd = 'Telescope', cmd = 'Telescope',
@ -199,10 +202,11 @@ require("lazy").setup({
{ {
'saecki/crates.nvim', 'saecki/crates.nvim',
ft = 'rust', ft = 'rust',
tag = 'v0.3.0', version = 'v0.3.0',
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' },
config = function() require('crates').setup() end config = function() require('crates').setup() end
}, },
{'simrat39/rust-tools.nvim', ft = 'rust'}, {'simrat39/rust-tools.nvim', ft = 'rust'},
{ {
@ -218,16 +222,16 @@ require("lazy").setup({
}, },
config = function() require("config.refactoring") end config = function() require("config.refactoring") end
}, },
'apalmer1377/factorus',
'apalmer1377/factorus',
'hrsh7th/vim-vsnip', 'hrsh7th/vim-vsnip',
'kosayoda/nvim-lightbulb', 'kosayoda/nvim-lightbulb',
{'andymass/vim-matchup', event = 'VimEnter'},
'jghauser/mkdir.nvim', 'jghauser/mkdir.nvim',
'nvim-lua/lsp-status.nvim',
{'andymass/vim-matchup', event = 'VimEnter'},
{ 'simrat39/symbols-outline.nvim', config = function() require("config.symbols-outline") end }, { 'simrat39/symbols-outline.nvim', config = function() require("config.symbols-outline") end },
{ 'petertriho/nvim-scrollbar', config = function() require("scrollbar").setup() end }, { 'petertriho/nvim-scrollbar', config = function() require("scrollbar").setup() end },
{ {
'rmagatti/auto-session', 'rmagatti/auto-session',
lazy = false, lazy = false,
@ -239,7 +243,6 @@ require("lazy").setup({
end end
}, },
{ {
"ipod825/libp.nvim", "ipod825/libp.nvim",
config = function() config = function()
@ -247,7 +250,7 @@ require("lazy").setup({
end, end,
}, },
'nvim-lua/lsp-status.nvim',
{ {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
lazy = false, lazy = false,
@ -267,16 +270,15 @@ require("lazy").setup({
}, },
{ {
'akinsho/git-conflict.nvim', 'akinsho/git-conflict.nvim',
tag = '*',
config = function() require('git-conflict').setup() end, config = function() require('git-conflict').setup() end,
}, },
{ 'rhysd/conflict-marker.vim' } { 'rhysd/conflict-marker.vim' }
}, },
-- { "catppuccin/nvim", as = "catppuccin" } -- { "catppuccin/nvim", as = "catppuccin" }
{ "catppuccin/nvim", as = "catppuccin", lazy=false, config = function() require("config.catppuccin") end}, { "catppuccin/nvim", name = "catppuccin", lazy=false, config = function() require("config.catppuccin") end},
-- Tmux -- Tmux
{
'preservim/vimux', 'preservim/vimux',
'tmux-plugins/vim-tmux', 'tmux-plugins/vim-tmux',
'christoomey/vim-tmux-navigator', 'christoomey/vim-tmux-navigator',
@ -284,7 +286,7 @@ require("lazy").setup({
'tmux-plugins/vim-tmux-focus-events', 'tmux-plugins/vim-tmux-focus-events',
'jabirali/vim-tmux-yank', 'jabirali/vim-tmux-yank',
'skywind3000/asyncrun.vim', 'skywind3000/asyncrun.vim',
},
{ {
'ojroques/nvim-osc52', 'ojroques/nvim-osc52',
config = function() require("config.oscyank") end config = function() require("config.oscyank") end
@ -302,7 +304,7 @@ require("lazy").setup({
'ntpeters/vim-better-whitespace', 'ntpeters/vim-better-whitespace',
'junegunn/fzf.vim', 'junegunn/fzf.vim',
{ 'junegunn/fzf', run = ":call fzf#install()" }, { 'junegunn/fzf', build = ":call fzf#install()" },
'nathanaelkane/vim-indent-guides', 'nathanaelkane/vim-indent-guides',
'tversteeg/registers.nvim', 'tversteeg/registers.nvim',
@ -325,8 +327,8 @@ require("lazy").setup({
}, },
{ {
"iamcco/markdown-preview.nvim", "iamcco/markdown-preview.nvim",
run = "cd app && npm install", build = "cd app && npm install",
setup = function() vim.g.mkdp_filetypes = { "markdown" } end, init = function() vim.g.mkdp_filetypes = { "markdown" } end,
ft = { "markdown" } ft = { "markdown" }
}, },
@ -383,16 +385,16 @@ require("lazy").setup({
}, },
}, },
{ {
defaults = { defaults = {
lazy = true, -- should plugins be lazy-loaded? -- lazy = true, -- should plugins be lazy-loaded?
}}) }})
-- CiderLSP -- CiderLSP
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }
-- Don't show the dumb matching stuff -- Don't show the dumb matching stuff
vim.opt.shortmess:append("c") vim.opt.shortmess:append("c")
vim.opt.spell = true vim.opt.spell = true
vim.opt.spelllang = { 'en_us' } vim.opt.spelllang = { 'en_us' }
require("config.imp") require("config.imp")

View File

@ -5,6 +5,7 @@ filetype off " required
set rtp+=~/.vim set rtp+=~/.vim
set rtp+=~/.vim/after set rtp+=~/.vim/after
set rtp+=~/.config/nvim/after/ set rtp+=~/.config/nvim/after/
set rtp+=~/.vim/lua/
set directory=/tmp set directory=/tmp
set undodir=/tmp set undodir=/tmp