Major neovim updates (mostly completion-related)

This commit is contained in:
PowerUser64 2021-09-06 17:56:58 -07:00
parent b01adf63d1
commit 8f9fcd34e2
4 changed files with 211 additions and 101 deletions

View file

@ -9,31 +9,31 @@ end
return require('packer').startup(function()
-- Packer
use { -- plugins
use { -- plugins
'wbthomason/packer.nvim'
}
-- Colors
use { -- syntax highlighting
use { -- syntax highlighting
'nvim-treesitter/nvim-treesitter', run = ':TSUpdate',
config = function()
require("lsp").treesitter()
end,
}
use { -- onedark theme
use { -- onedark theme
'navarasu/onedark.nvim',
config = function()
-- vim.g.onedark_transparent_background = true,
require('onedark').setup()
end
}
use { -- color tag highlighter
use { -- color tag highlighter
'norcalli/nvim-colorizer.lua'
}
-- IDE features
---- LSP
use { -- lsp installer
use { -- lsp installer
"kabouzeid/nvim-lspinstall",
-- opt = true,
-- setup = function()
@ -44,21 +44,36 @@ return require('packer').startup(function()
-- end, 0)
-- end,
}
use { -- Default LSP configs
use { -- Default LSP configs
"neovim/nvim-lspconfig",
after = "nvim-lspinstall",
config = function()
require("lsp").lspconfig()
end
}
use { -- compe
use { -- Icons for each entry in the completion menu
"onsails/lspkind-nvim",
}
use { -- compe
"hrsh7th/nvim-cmp",
requires = {
config = function()
require('lsp').cmp()
end,
requires = { -- nvim-cmp sources
"hrsh7th/vim-vsnip",
"rafamadriz/friendly-snippets",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-latex-symbols",
"hrsh7th/cmp-vsnip",
"hrsh7th/cmp-emoji",
"hrsh7th/cmp-calc",
"hrsh7th/cmp-look",
}
}
use { -- function parameter previews
use { -- function parameter previews
"ray-x/lsp_signature.nvim",
after = "nvim-lspconfig",
config = function()
@ -71,12 +86,13 @@ return require('packer').startup(function()
-- require("other").packer_lazy_load "vim-matchup"
-- end,
}
-- use { -- ALE: Support for lots of linters, etc
-- 'dense-analysis/ale',
-- config = function()
-- vim.g.ale_disable_lsp = 1
-- end
-- }
use { -- ALE: Support for lots of linters, etc
'dense-analysis/ale',
ft = {'sh', 'zsh', 'bash', 'c', 'cc', 'cpp', 'cmake', 'html', 'markdown', 'racket', 'vim', 'tex'},
config = function()
vim.g.ale_disable_lsp = 1
end
}
---- Other IDE features
@ -135,23 +151,20 @@ return require('packer').startup(function()
use { -- Alignment
'junegunn/vim-easy-align',
}
use { -- Quote/parenthesis changing
use { -- tpope: Quote/parenthesis changing
'tpope/vim-surround'
}
-- use { -- Some sensible defaults
-- 'tpope/vim-sensible'
-- }
use { -- Comments
use { -- tpope: Comments
'tpope/vim-commentary'
}
-- use { -- Comments (lua)
-- use { -- Comments (lua)
-- "terrortylor/nvim-comment",
-- require('conveniences').nvim_comment()
-- }
use { -- git integration
use { -- tpope: git integration
'tpope/vim-fugitive'
}
use { -- Repeatability for various tpope plugins
use { -- tpope: Repeatability for various tpope plugins
'tpope/vim-repeat',
}