From 5ee89b225316b188fb1677725925ef2ec772b1d6 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 19 May 2023 11:34:20 +0200 Subject: [PATCH] [nvim] Add some language-specific plugins --- nvim/coc-languages/lisp.vim | 2 ++ nvim/coc-languages/lua.vim | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 nvim/coc-languages/lisp.vim create mode 100644 nvim/coc-languages/lua.vim diff --git a/nvim/coc-languages/lisp.vim b/nvim/coc-languages/lisp.vim new file mode 100644 index 0000000..bb594d3 --- /dev/null +++ b/nvim/coc-languages/lisp.vim @@ -0,0 +1,2 @@ +call extend(g:dotfiles_coc_extensions, {'coc-cl': 1}) +call extend(g:dotfiles_coc_filetypes, {'lisp': 1}) diff --git a/nvim/coc-languages/lua.vim b/nvim/coc-languages/lua.vim new file mode 100644 index 0000000..a102961 --- /dev/null +++ b/nvim/coc-languages/lua.vim @@ -0,0 +1,4 @@ +if !has('nvim-0.2.1') | finish | endif +call extend(g:dotfiles_coc_extensions, {'coc-stylua': 1}) +let g:coc_user_config['coc.preferences.formatOnSaveFiletypes'] = ['lua'] +let g:coc_user_config['stylua.styluaPath'] = "/usr/bin/stylua"