From c1bf59d2a9cf2e46704dbf9cb30a92b32b084f65 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Wed, 10 Mar 2021 14:38:47 +0530 Subject: [PATCH] clean config --- lua/coc/lua.lua | 36 ------------------------------------ lua/pluginsList/lua.lua | 1 - lua/statusline/lua.lua | 2 +- plugin/packer_compiled.vim | 16 ++++++++++------ 4 files changed, 11 insertions(+), 44 deletions(-) diff --git a/lua/coc/lua.lua b/lua/coc/lua.lua index 50dfab3..e047993 100644 --- a/lua/coc/lua.lua +++ b/lua/coc/lua.lua @@ -41,39 +41,3 @@ norm! gg=G set expandtab sw=2 ]]) - -local remap = vim.api.nvim_set_keymap - -vim.g.coc_global_extensions = { - 'coc-eslint', - 'coc-tslint-plugin', - 'coc-json', - 'coc-css', - 'coc-html', - 'coc-stylelint', - 'coc-tsserver', -} - -vim.g.coc_snippet_next = '' -vim.g.coc_snippet_prev = '' - -vim.g.coc_root_patterns = { '.git', '.env', 'package.json' } - -check_backspace = function() - local col = vim.fn.col('.') - 1 - if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then - return true - else - return false - end -end - -remap('i', '', 'pumvisible() ? "" : v:lua.check_backspace() ? "" : coc#refresh()', { noremap = true, silent = true, expr = true }) -remap('i', '', 'pumvisible() ? "" : ""', { noremap = true, expr = true }) -remap('i', '', 'pumvisible() ? coc#_select_confirm() : "u=coc#on_enter()"', { noremap = true, silent = true, expr = true }) -remap('i', '', 'coc#refresh()', { noremap = true, silent = true, expr = true }) -remap('n', 'K', 'call CocActionAsync("doHover")', { noremap = true, silent = true }) - -remap('n', 'gd', '(coc-definition)', {noremap = true, silent = true}) -remap('n', 'gr', '(coc-references)', {noremap = true, silent = true}) -remap('n', 'gR', '(coc-rename)', {noremap = true, silent = true}) diff --git a/lua/pluginsList/lua.lua b/lua/pluginsList/lua.lua index a246e5f..d85c0dd 100644 --- a/lua/pluginsList/lua.lua +++ b/lua/pluginsList/lua.lua @@ -5,7 +5,6 @@ return require('packer').startup(function() use {'wbthomason/packer.nvim', opt = true} use { 'kyazdani42/nvim-web-devicons'} use { 'kyazdani42/nvim-tree.lua'} - use { 'hoob3rt/lualine.nvim'} use { 'neoclide/coc.nvim' , branch = 'release'} use { 'nvim-lua/plenary.nvim'} use { 'lewis6991/gitsigns.nvim'} diff --git a/lua/statusline/lua.lua b/lua/statusline/lua.lua index 0486c05..57ba005 100644 --- a/lua/statusline/lua.lua +++ b/lua/statusline/lua.lua @@ -31,7 +31,7 @@ gls.left[1] = { gls.left[2] = { ViMode = { provider = function() - return ' 󰀘 ' + return '  ' end, highlight = {colors.bg,colors.nord}, separator = ' ', diff --git a/plugin/packer_compiled.vim b/plugin/packer_compiled.vim index b919611..29285aa 100644 --- a/plugin/packer_compiled.vim +++ b/plugin/packer_compiled.vim @@ -36,9 +36,9 @@ _G.packer_plugins = { loaded = true, path = "/home/sid/.local/share/nvim/site/pack/packer/start/base16-vim" }, - ["completion-nvim"] = { + ["coc.nvim"] = { loaded = true, - path = "/home/sid/.local/share/nvim/site/pack/packer/start/completion-nvim" + path = "/home/sid/.local/share/nvim/site/pack/packer/start/coc.nvim" }, ["galaxyline.nvim"] = { loaded = true, @@ -52,6 +52,14 @@ _G.packer_plugins = { loaded = true, path = "/home/sid/.local/share/nvim/site/pack/packer/start/indentLine" }, + ["lualine.nvim"] = { + loaded = true, + path = "/home/sid/.local/share/nvim/site/pack/packer/start/lualine.nvim" + }, + neoformat = { + loaded = true, + path = "/home/sid/.local/share/nvim/site/pack/packer/start/neoformat" + }, ["nvim-bufferline.lua"] = { loaded = true, path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua" @@ -60,10 +68,6 @@ _G.packer_plugins = { loaded = true, path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua" }, - ["nvim-lspconfig"] = { - loaded = true, - path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-lspconfig" - }, ["nvim-tree.lua"] = { loaded = true, path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-tree.lua"