diff options
author | Julian T. <julian@jtle.dk> | 2023-11-19 12:48:12 +0100 |
---|---|---|
committer | Julian T. <julian@jtle.dk> | 2023-11-19 12:48:12 +0100 |
commit | 517fec1d313ca9a9cc1c7e70484a730d84cfe070 (patch) | |
tree | 5a1202a6c9d3f44ebe85acc18afea5fa42e0f811 /vim-extra | |
parent | f704caf68f69dfdc098746f66ab07222cf69b241 (diff) |
Vim stuff
Diffstat (limited to 'vim-extra')
-rw-r--r-- | vim-extra/.config/nvim/extra.vim | 61 |
1 files changed, 19 insertions, 42 deletions
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 - -" }}} |