added autocomplete plugin and autocompletemenu config
This commit is contained in:
parent
49b2c57c45
commit
7b823d7c15
2 changed files with 18 additions and 0 deletions
|
@ -29,4 +29,19 @@ return require('packer').startup(function(use)
|
|||
|
||||
-- LSP
|
||||
|
||||
-- Autocomplete
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use {
|
||||
'hrsh7th/nvim-cmp',
|
||||
requires = {
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'hrsh7th/cmp-buffer'},
|
||||
{'hrsh7th/cmp-path'},
|
||||
{'hrsh7th/cmp-cmdline'},
|
||||
{'L3MON4D3/LuaSnip'},
|
||||
{'saadparwaiz1/cmp_luasnip'},
|
||||
}
|
||||
}
|
||||
|
||||
end)
|
||||
|
||||
|
|
|
@ -10,6 +10,9 @@ vim.api.nvim_set_option("mouse","")
|
|||
vim.opt.rnu = true
|
||||
vim.opt.signcolumn = 'yes'
|
||||
|
||||
-- setting completion menu for autocompletion
|
||||
vim.opt.completeopt = 'menu,menuone,noselect'
|
||||
|
||||
-- correct tabbing
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue