From 65f81e72ce6490b11d8de8942fcd4a2e774ef379 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Fri, 14 Apr 2023 10:56:40 +0200 Subject: vim: re-enable polyglot, with some features disabled Polyglot sets a lot of useful variables --- common/vim.nix | 1 + dotfiles/vim/lua/myConfig.lua | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/common/vim.nix b/common/vim.nix index 1382d20..59de56a 100644 --- a/common/vim.nix +++ b/common/vim.nix @@ -118,6 +118,7 @@ inputs: { # Languages editorconfig-nvim + vim-polyglot vim-pandoc # Fixes "duplicated vim plugin" issue (refactoring-nvim.overrideAttrs (old: {dependencies = [];})) diff --git a/dotfiles/vim/lua/myConfig.lua b/dotfiles/vim/lua/myConfig.lua index 58c6f6d..4411d8c 100644 --- a/dotfiles/vim/lua/myConfig.lua +++ b/dotfiles/vim/lua/myConfig.lua @@ -57,6 +57,15 @@ vim.opt.listchars = { } vim.wo.list = true +-- Polyglot +----------- + +vim.g.polyglot_disabled = { + "ftdetect", + "autoindent", + "sensible", +} + -- Leaders ---------- -- cgit v1.2.3