Added neovim lsp completion

master
Jef Roosens 2021-12-06 12:34:02 +01:00
parent 9e6a5a4c31
commit df8b05d1bc
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
2 changed files with 49 additions and 27 deletions

View File

@ -31,14 +31,17 @@ require('packer').startup(function()
use "neovim/nvim-lspconfig" use "neovim/nvim-lspconfig"
-- use "hrsh7th/nvim-compe" -- use "hrsh7th/nvim-compe"
use "marko-cerovac/material.nvim" use "marko-cerovac/material.nvim"
use "nvim-lua/completion-nvim" use {"ms-jpq/coq_nvim", branch="coq"}
use "steelsojka/completion-buffers"
use {"nvim-treesitter/nvim-treesitter", run=":TSUpdate"} use {"nvim-treesitter/nvim-treesitter", run=":TSUpdate"}
use "akinsho/nvim-toggleterm.lua" use "akinsho/nvim-toggleterm.lua"
-- LaTeX editing
use "lervag/vimtex"
end) end)
-- =====PLUGIN CONFIGS===== -- =====PLUGIN CONFIGS=====
g.coq_settings = {auto_start = "shut-up"}
-- ctrlpvim/ctrlp.vim -- ctrlpvim/ctrlp.vim
g.ctrlp_map = "<leader>t" g.ctrlp_map = "<leader>t"
g.ctrlp_use_caching = 1 g.ctrlp_use_caching = 1
@ -163,7 +166,6 @@ vim.cmd("colorscheme material")
nmap("<leader>c", [[<Cmd>lua require('material.functions').toggle_style()<CR>]]) nmap("<leader>c", [[<Cmd>lua require('material.functions').toggle_style()<CR>]])
-- nvim-lua/completion-nvim -- nvim-lua/completion-nvim
vim.api.nvim_exec("autocmd BufEnter * lua require'completion'.on_attach()", false)
--Use <Tab> and <S-Tab> to navigate through popup menu --Use <Tab> and <S-Tab> to navigate through popup menu
vim.api.nvim_set_keymap("i", "<Tab>", 'pumvisible() ? "\\<C-n>" : "\\<Tab>"', { vim.api.nvim_set_keymap("i", "<Tab>", 'pumvisible() ? "\\<C-n>" : "\\<Tab>"', {
expr = true expr = true

View File

@ -71,83 +71,103 @@ time([[Defining packer_plugins]], true)
_G.packer_plugins = { _G.packer_plugins = {
["auto-pairs"] = { ["auto-pairs"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/auto-pairs" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/auto-pairs",
url = "https://github.com/jiangmiao/auto-pairs"
}, },
["completion-buffers"] = { coq_nvim = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/completion-buffers" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/coq_nvim",
}, url = "https://github.com/ms-jpq/coq_nvim"
["completion-nvim"] = {
loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/completion-nvim"
}, },
["ctrlp.vim"] = { ["ctrlp.vim"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/ctrlp.vim" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/ctrlp.vim",
url = "https://github.com/ctrlpvim/ctrlp.vim"
}, },
["editorconfig-vim"] = { ["editorconfig-vim"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/editorconfig-vim" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/editorconfig-vim",
url = "https://github.com/editorconfig/editorconfig-vim"
}, },
["material.nvim"] = { ["material.nvim"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/material.nvim" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/material.nvim",
url = "https://github.com/marko-cerovac/material.nvim"
}, },
nerdtree = { nerdtree = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nerdtree" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nerdtree",
url = "https://github.com/preservim/nerdtree"
}, },
["nvim-lspconfig"] = { ["nvim-lspconfig"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nvim-lspconfig" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
}, },
["nvim-toggleterm.lua"] = { ["nvim-toggleterm.lua"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nvim-toggleterm.lua" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nvim-toggleterm.lua",
url = "https://github.com/akinsho/nvim-toggleterm.lua"
}, },
["nvim-treesitter"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nvim-treesitter" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
}, },
["packer.nvim"] = { ["packer.nvim"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/packer.nvim" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
}, },
tabular = { tabular = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/tabular" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/tabular",
url = "https://github.com/godlygeek/tabular"
}, },
tagbar = { tagbar = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/tagbar" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/tagbar",
url = "https://github.com/majutsushi/tagbar"
}, },
["vim-commentary"] = { ["vim-commentary"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-commentary" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-commentary",
url = "https://github.com/tpope/vim-commentary"
}, },
["vim-fugitive"] = { ["vim-fugitive"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-fugitive" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-fugitive",
url = "https://github.com/tpope/vim-fugitive"
}, },
["vim-gitgutter"] = { ["vim-gitgutter"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-gitgutter" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
url = "https://github.com/airblade/vim-gitgutter"
}, },
["vim-indent-object"] = { ["vim-indent-object"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-indent-object" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-indent-object",
url = "https://github.com/michaeljsmith/vim-indent-object"
}, },
["vim-python-pep8-indent"] = { ["vim-python-pep8-indent"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-python-pep8-indent" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-python-pep8-indent",
url = "https://github.com/hynek/vim-python-pep8-indent"
}, },
["vim-surround"] = { ["vim-surround"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-surround" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-surround",
url = "https://github.com/tpope/vim-surround"
}, },
["vim-toml"] = { ["vim-toml"] = {
loaded = true, loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-toml" path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vim-toml",
url = "https://github.com/cespare/vim-toml"
},
vimtex = {
loaded = true,
path = "/home/jjr/.local/share/nvim/site/pack/packer/start/vimtex",
url = "https://github.com/lervag/vimtex"
} }
} }