From 1d078c2035636a390cad86e5bb279ce24d5e39e5 Mon Sep 17 00:00:00 2001 From: Zofia Szweda Date: Sat, 5 Sep 2026 10:54:53 +0200 Subject: vim: add vim-commentary and smarttab --- vim/.vimrc | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 6f625c4..fb5c55e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -16,11 +16,15 @@ Plug 'prabirshrestha/asyncomplete-lsp.vim' Plug 'tpope/vim-vinegar' Plug 'ap/vim-buftabline' Plug 'sheerun/vim-polyglot' +Plug 'tpope/vim-commentary' Plug 'kalbasit/vim-colemak' call plug#end() +syntax on +"filetype filetype on filetype indent on filetype plugin on +"set set nocompatible set fileformat=unix set encoding=UTF-8 @@ -29,8 +33,8 @@ set rnu set expandtab set tabstop=4 set shiftwidth=4 +set smarttab set smartindent -syntax on set noswapfile set incsearch set ignorecase @@ -47,23 +51,25 @@ set undofile set undodir=~/.vim/undodir set signcolumn=yes set shortmess+=c +" etc colorscheme flatwhite -let mapleader = "\" nnoremap nnoremap :WhichKey '' inoremap l +autocmd FileType html,css EmmetInstall +"let +let mapleader = "\" let g:buftabline_show = 2 let g:buftabline_numbers = 1 let g:user_emmet_leader_key='' let g:user_emmet_mode='n' let g:user_emmet_install_global = 0 -autocmd FileType html,css EmmetInstall let g:lightline = { \ 'colorscheme': 'one', \ 'background': 'light', \ } -let g:loaded_newtrw = 1 -let g:loaded_newtrwPlugin = 1 +let g:loaded_netrw = 1 +let g:loaded_netrwPlugin = 1 let g:which_key_map = {} let g:which_key_map.f = ['Files', 'file buffer'] let g:which_key_map.b = { @@ -82,7 +88,13 @@ if executable('pylsp') \ 'allowlist': ['python'], \ }) endif - +if executable('pylsp') + au User lsp_setup call lsp#register_server({ + \ 'name': 'clangd', + \ 'cmd': {server_info->['clangd']}, + \ 'allowlist': ['c' 'cpp'], + \}) +endif function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal signcolumn=yes -- cgit v1.2.3