From b2fd3bbd5c11cdf3efa7b4ccb12fbc26bedd2c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 1 Dec 2021 13:28:12 +0100 Subject: [PATCH] Fix filetype issues in nvim --- symlinks/config/nvim/after/ftplugin/elixir.vim | 5 +---- symlinks/config/nvim/init.lua | 7 +------ symlinks/config/nvim/lua/init/plugins.lua | 1 - 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/symlinks/config/nvim/after/ftplugin/elixir.vim b/symlinks/config/nvim/after/ftplugin/elixir.vim index a1c91f6..30bfec2 100644 --- a/symlinks/config/nvim/after/ftplugin/elixir.vim +++ b/symlinks/config/nvim/after/ftplugin/elixir.vim @@ -1,5 +1,2 @@ setlocal ts=2 sts=2 sw=2 expandtab autoindent -let b:undo_ftplugin .= '|setlocal ts< sts< sw< expandtab< autoindent<' - -compiler elixir -let b:undo_ftplugin .= '|compiler<' +let b:undo_ftplugin = '|setlocal ts< sts< sw< expandtab< autoindent<' diff --git a/symlinks/config/nvim/init.lua b/symlinks/config/nvim/init.lua index f4ccb77..85a940c 100644 --- a/symlinks/config/nvim/init.lua +++ b/symlinks/config/nvim/init.lua @@ -5,12 +5,7 @@ end -- Allow `require('impatient')` to fail, in case plugins are not yet installed _ = pcall(require, 'impatient') --- Speed up startup - quicker filetype.vim - should probably remove in future neovim versions -vim.g.did_load_filetypes = 1 - -vim.cmd [[filetype plugin on]] -vim.cmd [[filetype indent on]] -vim.cmd [[syntax on]] +vim.cmd [[filetype plugin indent on]] vim.api.nvim_exec('let $OVIMHOME = $HOME."/.vim"', false) vim.api.nvim_exec('let $VIMHOME = $HOME."/.config/nvim"', false) diff --git a/symlinks/config/nvim/lua/init/plugins.lua b/symlinks/config/nvim/lua/init/plugins.lua index 769f64f..26f664a 100644 --- a/symlinks/config/nvim/lua/init/plugins.lua +++ b/symlinks/config/nvim/lua/init/plugins.lua @@ -34,7 +34,6 @@ return require('packer').startup { use 'romainl/vim-qf' -- Quickfix list upgrades use 'romainl/vim-devdocs' -- Quick DevDocs.io search using :DD use 'gpanders/editorconfig.nvim' -- .editorconfig support - use 'nathom/filetype.nvim' -- Quicker filetype.nvim file use 'lewis6991/impatient.nvim' -- Caching lua modules for faster startup -- Tools --