minor changes

This commit is contained in:
siduck76 2021-03-07 22:22:33 +05:30
parent 41a84f97f7
commit 82f4566872
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
require"completion".on_attach(client)
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
@ -54,7 +55,6 @@ end
local servers = { "html" , "cssls" , "tsserver"}
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup { on_attach = on_attach }
require"completion".on_attach(client)
end
-- keybinds

View file

@ -18,4 +18,5 @@ return require('packer').startup(function()
use { 'norcalli/nvim-colorizer.lua'}
use { 'Yggdroot/indentLine'}
use { 'ryanoasis/vim-devicons'}
use { 'sbdchd/neoformat'}
end)