From ea6dc6594a8cb29407321e67e9ccd0462db5b93e Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 3 Dec 2021 17:33:49 +0100 Subject: [PATCH] Add polyglot --- home/.config/nvim/lua/plugins.d/polyglot.lua | 11 +++++++++++ home/.config/nvim/lua/plugins.lua | 1 + 2 files changed, 12 insertions(+) create mode 100644 home/.config/nvim/lua/plugins.d/polyglot.lua diff --git a/home/.config/nvim/lua/plugins.d/polyglot.lua b/home/.config/nvim/lua/plugins.d/polyglot.lua new file mode 100644 index 0000000..91d3eff --- /dev/null +++ b/home/.config/nvim/lua/plugins.d/polyglot.lua @@ -0,0 +1,11 @@ +local vim = require("vim") +local cmd = vim.cmd +local g = vim.g + +cmd[[Plug 'sheerun/vim-polyglot']] + +-- Disable polyglot's "sensible" settings, while there are some nice things it +-- does, I set these manually in my default config and I don't like depending +-- on single plugin for so many things, doing it manually doing it manually is +-- also more explicit making it obvious what's happening +g.polyglot_disabled = {'sensible'} diff --git a/home/.config/nvim/lua/plugins.lua b/home/.config/nvim/lua/plugins.lua index eec5f2a..02f2967 100644 --- a/home/.config/nvim/lua/plugins.lua +++ b/home/.config/nvim/lua/plugins.lua @@ -47,6 +47,7 @@ load_plugin('tmhedberg/SimpylFold') load_plugin('wakatime/vim-wakatime') load_plugin('mhinz/vim-startify') load_plugin('ryanoasis/vim-devicons') +load_plugin_file("polyglot.lua") load_plugin_file("vim-code-dark.lua") load_plugin_file("commentary.lua") load_plugin_file("coc.vim")