LSP Rewrite
This commit is contained in:
parent
5519206fdd
commit
d9ac8b2bd1
5 changed files with 70 additions and 108 deletions
|
|
@ -14,23 +14,17 @@ local packer_bootstrap = ensure_packer()
|
|||
return require("packer").startup(function(use)
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
-- Org mode
|
||||
use {
|
||||
"nvim-neorg/neorg",
|
||||
run = ":Neorg sync-parsers",
|
||||
}
|
||||
|
||||
-- Dashboard
|
||||
use {
|
||||
'glepnir/dashboard-nvim',
|
||||
event = 'VimEnter',
|
||||
requires = {'nvim-tree/nvim-web-devicons'},
|
||||
config = function()
|
||||
require('dashboard').setup {
|
||||
-- config
|
||||
}
|
||||
end,
|
||||
}
|
||||
-- -- Dashboard
|
||||
-- use {
|
||||
-- 'glepnir/dashboard-nvim',
|
||||
-- event = 'VimEnter',
|
||||
-- requires = {'nvim-tree/nvim-web-devicons'},
|
||||
-- config = function()
|
||||
-- require('dashboard').setup {
|
||||
-- -- config
|
||||
-- }
|
||||
-- end,
|
||||
-- }
|
||||
|
||||
-- File manager in nvim
|
||||
use {
|
||||
|
|
@ -43,7 +37,7 @@ return require("packer").startup(function(use)
|
|||
|
||||
-- Find files and strings
|
||||
use {
|
||||
"nvim-telescope/telescope.nvim", tag = "0.1.0",
|
||||
"nvim-telescope/telescope.nvim", tag = "0.1.4",
|
||||
requires = { {"nvim-lua/plenary.nvim"} }
|
||||
}
|
||||
|
||||
|
|
@ -57,7 +51,7 @@ return require("packer").startup(function(use)
|
|||
use 'Mofiqul/vscode.nvim'
|
||||
|
||||
-- Referencing a hex code highlights it in that color
|
||||
use "lilydjwg/colorizer"
|
||||
use "norcalli/nvim-colorizer.lua"
|
||||
|
||||
-- Relative line numbers disappear when not actively in buffer
|
||||
use "jeffkreeftmeijer/vim-numbertoggle"
|
||||
|
|
@ -84,20 +78,18 @@ return require("packer").startup(function(use)
|
|||
-- LSP
|
||||
use {
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v1.x',
|
||||
branch = 'v3.x',
|
||||
requires = {
|
||||
-- LSP Support
|
||||
{'neovim/nvim-lspconfig'}, -- Required
|
||||
{'williamboman/mason.nvim'}, -- Optional
|
||||
{'williamboman/mason-lspconfig.nvim'}, -- Optional
|
||||
{'neovim/nvim-lspconfig'}, -- Required
|
||||
|
||||
-- Autocompletion
|
||||
{'hrsh7th/nvim-cmp'}, -- Required
|
||||
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
||||
{'hrsh7th/cmp-buffer'}, -- Optional
|
||||
{'hrsh7th/cmp-path'}, -- Optional
|
||||
{'saadparwaiz1/cmp_luasnip'}, -- Optional
|
||||
{'hrsh7th/cmp-nvim-lua'}, -- Optional
|
||||
{'hrsh7th/nvim-cmp'}, -- Required
|
||||
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
||||
{'hrsh7th/cmp-buffer'}, -- Optional
|
||||
{'hrsh7th/cmp-path'}, -- Optional
|
||||
{'saadparwaiz1/cmp_luasnip'}, -- Optional
|
||||
{'hrsh7th/cmp-nvim-lua'}, -- Optional
|
||||
|
||||
-- Snippets
|
||||
{'L3MON4D3/LuaSnip'}, -- Required
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ vim.opt.signcolumn = "auto"
|
|||
|
||||
vim.o.shell = "zsh"
|
||||
|
||||
-- Do not map q to :q in man mode
|
||||
vim.g.no_man_maps = true;
|
||||
|
||||
-- Local settings for when in :terminal mode
|
||||
-- I don't believe this functionality has been ported to lua.
|
||||
vim.cmd([[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue