From e958a1f968ef03f5ac5a208df438690f240a1c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 25 Jan 2022 19:58:36 +0300 Subject: Some cleanup --- dotfiles/.config/nvim/init.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dotfiles/.config/nvim') diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index 616df31..24b7929 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -21,7 +21,6 @@ call plug#begin('~/.local/share/nvim/site/plugged') Plug 'majutsushi/tagbar' Plug 'rust-lang/rust.vim' Plug 'cespare/vim-toml' - Plug 'xavierd/clang_complete' Plug 'pangloss/vim-javascript' Plug 'https://gitlab.com/HiPhish/info.vim' Plug 'neovim/nvim-lspconfig' @@ -33,7 +32,6 @@ call plug#end() syntax on set foldmethod=syntax set omnifunc=syntaxcomplete#Complete - set omnifunc=v:lua.vim.lsp.omnifunc set guicursor=n-v-sm:block,i-ci-c-ve:ver25,r-cr-o:block set cursorline set redrawtime=1000 @@ -220,6 +218,7 @@ call plug#end() map g :Goyo " LSP + set omnifunc=v:lua.vim.lsp.omnifunc lua require('lspconfig').clangd.setup{filetypes = { "c", "cpp", "objc", "objcpp", "ch" }} lua require('lspconfig').gopls.setup{} lua require('lspconfig').pylsp.setup{} @@ -229,11 +228,14 @@ call plug#end() " LSP keybinds nmap gd lua vim.lsp.buf.definition() nmap gD lua vim.lsp.buf.declaration() - nmap K lua vim.lsp.buf.hover() + nmap gK lua vim.lsp.buf.hover() nmap n lua vim.lsp.buf.rename() nmap b lua vim.lsp.buf.formatting() " File format preferences + " MFing neovim overrding my omnifunc with whatever ccomplete is + autocmd FileType c,ch,header,cpp setlocal omnifunc=v:lua.vim.lsp.omnifunc + " No Rust, spaces is not superior to tabs, 100 lines is too much autocmd FileType rust setlocal noet ci pi sts=0 ts=4 sw=4 tw=80 autocmd FileType meson setlocal noet ci pi sts=0 ts=4 sw=4 tw=80 autocmd FileType tex setlocal spell spelllang=en_us,es,ru tw=80 | -- cgit v1.2.3