From 639d95337f8b58c43c4115cf83cb0c278a621db1 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 12 Sep 2020 21:59:39 +0300 Subject: Changes to file syntax config files Mostly added syntax foldmethod to C, C++, and JS files. --- .../.local/share/nvim/site/after/ftplugin/c.vim | 5 +++-- .../.local/share/nvim/site/after/ftplugin/cpp.vim | 5 +++-- .../share/nvim/site/after/ftplugin/javascript.vim | 1 + .../.local/share/nvim/site/after/ftplugin/toml.vim | 21 --------------------- 4 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 dotfiles/.local/share/nvim/site/after/ftplugin/toml.vim (limited to 'dotfiles/.local/share') diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/c.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/c.vim index 810fd8f..acc39c9 100644 --- a/dotfiles/.local/share/nvim/site/after/ftplugin/c.vim +++ b/dotfiles/.local/share/nvim/site/after/ftplugin/c.vim @@ -1,2 +1,3 @@ -setlocal shiftwidth=2 -setlocal tabstop=2 +setlocal shiftwidth=4 +setlocal tabstop=4 +setlocal foldmethod=syntax diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/cpp.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/cpp.vim index 810fd8f..acc39c9 100644 --- a/dotfiles/.local/share/nvim/site/after/ftplugin/cpp.vim +++ b/dotfiles/.local/share/nvim/site/after/ftplugin/cpp.vim @@ -1,2 +1,3 @@ -setlocal shiftwidth=2 -setlocal tabstop=2 +setlocal shiftwidth=4 +setlocal tabstop=4 +setlocal foldmethod=syntax diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/javascript.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/javascript.vim index 810fd8f..1f0cb33 100644 --- a/dotfiles/.local/share/nvim/site/after/ftplugin/javascript.vim +++ b/dotfiles/.local/share/nvim/site/after/ftplugin/javascript.vim @@ -1,2 +1,3 @@ setlocal shiftwidth=2 setlocal tabstop=2 +setlocal foldmethod=syntax diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/toml.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/toml.vim deleted file mode 100644 index 9075e88..0000000 --- a/dotfiles/.local/share/nvim/site/after/ftplugin/toml.vim +++ /dev/null @@ -1,21 +0,0 @@ -" File: ftplugin/toml.vim -" Author: Kevin Ballard -" Description: FileType Plugin for Toml -" Last Change: Feb 12, 2019 - -if exists('b:did_ftplugin') - finish -endif -let b:did_ftplugin = 1 - -let s:save_cpo = &cpo -set cpo&vim -let b:undo_ftplugin = 'setlocal commentstring< comments<' - -setlocal commentstring=#\ %s -setlocal comments=:# - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: set et sw=4 ts=4: -- cgit v1.2.3