clean config
This commit is contained in:
parent
70d9e12380
commit
c1bf59d2a9
@ -41,39 +41,3 @@ norm! gg=G
|
|||||||
set expandtab sw=2
|
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 = '<C-j>'
|
|
||||||
vim.g.coc_snippet_prev = '<C-k>'
|
|
||||||
|
|
||||||
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', '<Tab>', 'pumvisible() ? "<C-n>" : v:lua.check_backspace() ? "<Tab>" : coc#refresh()', { noremap = true, silent = true, expr = true })
|
|
||||||
remap('i', '<S-Tab>', 'pumvisible() ? "<C-p>" : "<S-Tab>"', { noremap = true, expr = true })
|
|
||||||
remap('i', '<CR>', 'pumvisible() ? coc#_select_confirm() : "<C-g>u<CR><C-r>=coc#on_enter()<CR>"', { noremap = true, silent = true, expr = true })
|
|
||||||
remap('i', '<C-c>', 'coc#refresh()', { noremap = true, silent = true, expr = true })
|
|
||||||
remap('n', 'K', '<CMD>call CocActionAsync("doHover")<CR>', { noremap = true, silent = true })
|
|
||||||
|
|
||||||
remap('n', 'gd', '<Plug>(coc-definition)', {noremap = true, silent = true})
|
|
||||||
remap('n', 'gr', '<Plug>(coc-references)', {noremap = true, silent = true})
|
|
||||||
remap('n', 'gR', '<Plug>(coc-rename)', {noremap = true, silent = true})
|
|
||||||
|
@ -5,7 +5,6 @@ return require('packer').startup(function()
|
|||||||
use {'wbthomason/packer.nvim', opt = true}
|
use {'wbthomason/packer.nvim', opt = true}
|
||||||
use { 'kyazdani42/nvim-web-devicons'}
|
use { 'kyazdani42/nvim-web-devicons'}
|
||||||
use { 'kyazdani42/nvim-tree.lua'}
|
use { 'kyazdani42/nvim-tree.lua'}
|
||||||
use { 'hoob3rt/lualine.nvim'}
|
|
||||||
use { 'neoclide/coc.nvim' , branch = 'release'}
|
use { 'neoclide/coc.nvim' , branch = 'release'}
|
||||||
use { 'nvim-lua/plenary.nvim'}
|
use { 'nvim-lua/plenary.nvim'}
|
||||||
use { 'lewis6991/gitsigns.nvim'}
|
use { 'lewis6991/gitsigns.nvim'}
|
||||||
|
@ -31,7 +31,7 @@ gls.left[1] = {
|
|||||||
gls.left[2] = {
|
gls.left[2] = {
|
||||||
ViMode = {
|
ViMode = {
|
||||||
provider = function()
|
provider = function()
|
||||||
return ' '
|
return ' '
|
||||||
end,
|
end,
|
||||||
highlight = {colors.bg,colors.nord},
|
highlight = {colors.bg,colors.nord},
|
||||||
separator = ' ',
|
separator = ' ',
|
||||||
|
@ -36,9 +36,9 @@ _G.packer_plugins = {
|
|||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/sid/.local/share/nvim/site/pack/packer/start/base16-vim"
|
path = "/home/sid/.local/share/nvim/site/pack/packer/start/base16-vim"
|
||||||
},
|
},
|
||||||
["completion-nvim"] = {
|
["coc.nvim"] = {
|
||||||
loaded = true,
|
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"] = {
|
["galaxyline.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
@ -52,6 +52,14 @@ _G.packer_plugins = {
|
|||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/sid/.local/share/nvim/site/pack/packer/start/indentLine"
|
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"] = {
|
["nvim-bufferline.lua"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua"
|
path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua"
|
||||||
@ -60,10 +68,6 @@ _G.packer_plugins = {
|
|||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua"
|
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"] = {
|
["nvim-tree.lua"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-tree.lua"
|
path = "/home/sid/.local/share/nvim/site/pack/packer/start/nvim-tree.lua"
|
||||||
|
Loading…
Reference in New Issue
Block a user