From 86a8a74a8f74db9c224be1bfa5843e5d7149efba Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 11 Sep 2022 00:34:31 +0200 Subject: [PATCH] nvim: use vim-plugins installed by OS package manager remove gentoo-syntax, since it is installed globally --- .config/nvim/init.lua | 5 +++++ .config/nvim/lua/my/plugins.lua | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 007a55e..ae77d66 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -7,6 +7,11 @@ if vim.fn.has(version_required) == 0 then return nil end +-- use the vim plugins installed via the OS package manager +if vim.fn.isdirectory('/usr/share/vim/vimfiles') == 1 then + vim.opt.runtimepath:append('/usr/share/vim/vimfiles') +end + require('my/plugins') require('my.functions') require('my/settings') diff --git a/.config/nvim/lua/my/plugins.lua b/.config/nvim/lua/my/plugins.lua index 842f2ae..e0706f2 100644 --- a/.config/nvim/lua/my/plugins.lua +++ b/.config/nvim/lua/my/plugins.lua @@ -34,7 +34,6 @@ require('packer').startup({ function(use) 'https://github.com/JoosepAlviste/nvim-ts-context-commentstring', requires = 'https://github.com/nvim-treesitter/nvim-treesitter' } - use { 'https://github.com/gentoo/gentoo-syntax' } use { 'https://github.com/folke/todo-comments.nvim', requires = { 'https://github.com/nvim-lua/plenary.nvim' }