From 7aead9ddc000aeaaf55598348a7e7bc7ed12a61d Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Fri, 22 Apr 2022 13:54:00 -0700 Subject: [PATCH] updates --- coc-settings.json | 6 +++++ init.vim | 1 + lua/plugins.lua | 57 ++++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 59 insertions(+), 5 deletions(-) diff --git a/coc-settings.json b/coc-settings.json index 85243d9..531585c 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -1,3 +1,9 @@ { "diagnostic.showUnused": false, + "languageserver": { + "vala": { + "command": "vala-language-server", + "filetypes": ["vala", "genie"] + } + } } diff --git a/init.vim b/init.vim index 9e667ae..82c73f9 100644 --- a/init.vim +++ b/init.vim @@ -61,6 +61,7 @@ if exists('g:neovide') let g:neovide_transparency = 0.90 let g:neovide_refresh_rate = 60 let g:neovide_cursor_vfx_mode = "pixiedust" + let g:neovide_confirm_quit = v:true endif if exists('g:fvim_loaded') diff --git a/lua/plugins.lua b/lua/plugins.lua index a3ccee4..b31f7c4 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -22,7 +22,9 @@ return require('packer').startup(function(use) 'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons', config = function() - require('nvim-tree').setup {} + require('nvim-tree').setup { + update_cwd = true + } end } use 'bryanmylee/vim-colorscheme-icons' @@ -189,11 +191,10 @@ return require('packer').startup(function(use) end, config = function() require 'nvim-treesitter.install'.compilers = { 'cl', 'clang' } - require 'nvim-treesitter.configs'.setup { - ensure_installed = "maintained", + ensure_installed = "all", highlight = { - enable = true + --enable = true }, indent = { enable = true @@ -210,7 +211,48 @@ return require('packer').startup(function(use) use 'lepture/vim-jinja' use { 'neoclide/coc.nvim', - branch = 'release' + branch = 'release', + config = function() + vim.g.coc_global_extensions = { + 'coc-cmake', + 'coc-css', + 'coc-docker', + 'coc-git', + 'coc-html', + 'coc-json', + 'coc-rls', + 'coc-sql', + 'coc-toml', + 'coc-tsserver', + 'coc-yaml', + 'coc-zig' + } + + vim.api.nvim_exec( + [[ + function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' + endfunction + + inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() + + nnoremap K :call show_documentation() + function! s:show_documentation() + if (index(['vim','help'], &filetype) >= 0) + execute 'h '.expand('') + elseif (coc#rpc#ready()) + call CocActionAsync('doHover') + else + execute '!' . &keywordprg . " " . expand('') + endif + endfunction + ]], true) + + end } use 'editorconfig/editorconfig-vim' use { @@ -240,6 +282,11 @@ return require('packer').startup(function(use) -- To be configured! 'numToStr/FTerm.nvim' } + use { 'sirver/ultisnips' } + use { 'honza/vim-snippets' } + use { 'andrewstuart/vim-kubernetes' } + use { 'arrufat/vala.vim' } + use { 'pirmd/gemini.vim' } end)