From aa4f850a69acd73186eb1470a2ae425c663c4f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20J=C3=B8rgensen=20Teule?= Date: Mon, 18 Mar 2024 18:36:39 +0100 Subject: Minor vim changes --- vim-extra/.config/nvim/extra.vim | 79 ++++++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 23 deletions(-) (limited to 'vim-extra/.config') diff --git a/vim-extra/.config/nvim/extra.vim b/vim-extra/.config/nvim/extra.vim index d2fc7cf..7beab6d 100644 --- a/vim-extra/.config/nvim/extra.vim +++ b/vim-extra/.config/nvim/extra.vim @@ -18,6 +18,9 @@ Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' } + "Plug 'github/copilot.vim' + + Plug 'udalov/kotlin-vim' Plug 'NLKNguyen/papercolor-theme' Plug 'lervag/vimtex' @@ -28,21 +31,21 @@ colorscheme PaperColor " Treesitter {{{ -lua <'] = cmp.mapping.confirm({ select = true }), + }), + preselect = cmp.PreselectMode.None, + }) +EOF "}}} @@ -76,8 +90,10 @@ lua <he', vim.diagnostic.open_float, opts) vim.keymap.set('n', 'hh', vim.lsp.buf.hover, opts) vim.keymap.set('n', 'q', vim.diagnostic.setqflist, opts) + vim.keymap.set('n', 'c', vim.lsp.buf.format, opts) + + -- Hmm det er faktisk ikke så fedt + -- vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]] vim.api.nvim_set_hl(0, '@lsp.type.function', {}) + end, }) -- cgit v1.2.3