From 517fec1d313ca9a9cc1c7e70484a730d84cfe070 Mon Sep 17 00:00:00 2001 From: "Julian T." Date: Sun, 19 Nov 2023 12:48:12 +0100 Subject: Vim stuff --- vim-extra/.config/nvim/extra.vim | 61 +++++++++++++--------------------------- 1 file changed, 19 insertions(+), 42 deletions(-) (limited to 'vim-extra/.config') diff --git a/vim-extra/.config/nvim/extra.vim b/vim-extra/.config/nvim/extra.vim index 415444f..440d86b 100644 --- a/vim-extra/.config/nvim/extra.vim +++ b/vim-extra/.config/nvim/extra.vim @@ -1,70 +1,47 @@ " Plugins{{{ call plug#begin() Plug 'neovim/nvim-lspconfig' - Plug 'Shougo/echodoc.vim' - - Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'tpope/vim-surround' Plug 'tpope/vim-repeat' Plug 'NLKNguyen/papercolor-theme' - Plug 'LnL7/vim-nix' - Plug 'fatih/vim-go' Plug 'lervag/vimtex' + Plug 'nvim-treesitter/nvim-treesitter' + call plug#end() " }}} +" Treesitter {{{ +lua << EOF + require'nvim-treesitter.configs'.setup { + ensure_installed = { "lua", "typescript", "java", "tsx" }, + auto_install = false, + highlight = { + enable = true, + }, + indent = { + enable = true, + } + } +EOF +" }}} + " Completion{{{ set completeopt+=menuone set completeopt+=noselect - - if has('nvim') - let g:echodoc#enable_at_startup = 1 - let g:echodoc#type = 'virtual' - endif - + " " Close completion window autocmd CompleteDone * pclose colorscheme PaperColor - lua << EOF - local lspconfig = require("lspconfig") - lspconfig.clangd.setup {} - - vim.api.nvim_create_autocmd("LspAttach", { - group = vim.api.nvim_create_augroup("UserLspConfig", {}), - callback = function (ev) - vim.bo[ev.buf].omnifunc = "v:lua.vim.lsp.omnifunc" - end, - }) -EOF "}}} " Latex {{{ - let g:vimtex_view_method = 'zathura' + let g:vimtex_view_method = 'general' let g:vimtex_quickfix_open_on_warning = 0 "}}} - -" Tree sitter {{{ - -lua << EOF -require'nvim-treesitter.configs'.setup { - ensure_installed = { "c", "lua", "vim", "rust", "help" }, - - highlight = { - enable = true, - - disable = { "latex" }, - }, - incremental_selection = { - enable = true, - }, -} -EOF - -" }}} -- cgit v1.2.3