From 5ee89b225316b188fb1677725925ef2ec772b1d6 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 19 May 2023 11:34:20 +0200 Subject: [PATCH 1/3] [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" From 42cb4145cf5d1c755333d91b452957d439fa0490 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 19 May 2023 11:35:00 +0200 Subject: [PATCH 2/3] [nvim] If enabled, build coc-cl from source --- nvim/dotfiles/plugins-list.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nvim/dotfiles/plugins-list.vim b/nvim/dotfiles/plugins-list.vim index 87965af..e35cf19 100644 --- a/nvim/dotfiles/plugins-list.vim +++ b/nvim/dotfiles/plugins-list.vim @@ -46,6 +46,12 @@ let s:plug = funcref('dotfiles#plugman#register') " }}} " }}} +" coc {{{ + if g:dotfiles_build_coc_from_source + call s:plug('https://github.com/UltiRequiem/coc-cl', { 'do': 'yarn install --frozen-lockfile && yarn build' }) + endif +" }}} + " Misc {{{ if has('nvim') call s:plug('andweeb/presence.nvim') From ba156d9ecc7725a51e9a4c863318c0c678060758 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Fri, 19 May 2023 11:36:26 +0200 Subject: [PATCH 3/3] [Meta] Add .luarc.json --- .luarc.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .luarc.json diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..23b9ee2 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,3 @@ +{ + "workspace.checkThirdParty": false +} \ No newline at end of file