From d86b7ae4428f8f21b55823d76ada9ac65b38617c Mon Sep 17 00:00:00 2001 From: self Date: Tue, 7 Mar 2023 20:46:42 +0000 Subject: init.vim: various removals for a more minimal set-up --- init.vim | 131 ++++----------------------------------------------------------- 1 file changed, 8 insertions(+), 123 deletions(-) diff --git a/init.vim b/init.vim index f55689e..e616e7f 100755 --- a/init.vim +++ b/init.vim @@ -47,9 +47,6 @@ noremap fd :Telescope fd " vim-plug -> call plug#begin('~/.config/nvim/plugged') -" Nvim LSP client -Plug 'neovim/nvim-lspconfig' - """"""""""" " Themes -> Plug 'folke/tokyonight.nvim' @@ -123,14 +120,14 @@ Plug 'tpope/vim-repeat' " Rainbow brackets for easy viewing Plug 'luochen1990/rainbow' -let g:rainbow_active = 0 - -" Autoclose brackets -Plug 'cohama/lexima.vim' -let g:lexima_enable_basic_rules = 0 -let g:lexima_enable_newline_rules = 0 -let g:enable_endwise_rules = 0 - +let g:rainbow_active = 1 + +""" Autoclose brackets +"Plug 'cohama/lexima.vim' +"let g:lexima_enable_basic_rules = 0 +"let g:lexima_enable_newline_rules = 0 +"let g:enable_endwise_rules = 0 +" Plug 'alvan/vim-closetag' " Close HTML tags " Modify surrounding brackets @@ -174,16 +171,6 @@ let g:lightline = { \ } \ } -" Various LSP plugins -Plug 'hrsh7th/nvim-cmp' " Completion framework -Plug 'hrsh7th/cmp-nvim-lsp' " LSP completion source for nvim-cmp -Plug 'hrsh7th/cmp-vsnip' " Snippet completion source for nvim-cmp -Plug 'hrsh7th/cmp-path' -Plug 'hrsh7th/cmp-buffer' -Plug 'simrat39/rust-tools.nvim' -Plug 'hrsh7th/vim-vsnip' -Plug 'nvim-lua/lsp_extensions.nvim' - Plug 'nvim-lua/plenary.nvim' Plug 'mfussenegger/nvim-dap' @@ -225,105 +212,3 @@ set signcolumn=yes " numb :lua require('numb').setup() - -" Lua: LSP Configs -lua <'] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.select_next_item(), - -- Add tab support - [''] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.close(), - [''] = cmp.mapping.confirm({ - behavior = cmp.ConfirmBehavior.Insert, - select = true, - }) - }, - - -- Installed sources - sources = { - { name = 'nvim_lsp' }, - { name = 'vsnip' }, - { name = 'path' }, - { name = 'buffer' }, - }, -}) - -" vim.cmd [[ autocmd CursorMoved,InsertLeave,BufEnter,BufWinEnter,TabEnter,BufWritePost * :lua require'lsp_extensions'.inlay_hints{ prefix = '=>', highlight = "Comment", enabled = {"TypeHint", "ChainingHint", "ParameterHint"} } ]] - -- cgit v1.2.1