aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-28 00:00:38 +0900
committernsfisis <nsfisis@gmail.com>2021-11-28 00:00:38 +0900
commit5f6941aa610fcc82c34782ed140b83b4497fd048 (patch)
tree0b36056c36db563c82694b055fd23f9ece0fd127 /.config/nvim/init.lua
parentb73d4c0bff913467628ecddd2b5ac9eb66f55118 (diff)
downloaddotfiles-5f6941aa610fcc82c34782ed140b83b4497fd048.tar.gz
dotfiles-5f6941aa610fcc82c34782ed140b83b4497fd048.tar.zst
dotfiles-5f6941aa610fcc82c34782ed140b83b4497fd048.zip
neovim: rewrite after/ftplugin/* in Lua
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua59
1 files changed, 9 insertions, 50 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index b78c407..b7a4249 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -1,12 +1,12 @@
---[==========================================================================[--
--- --
--- _ __ _ _ _ _ --
--- _ ____ _(_)_ __ ___ / / (_)_ __ (_) |_ | |_ _ __ _ --
--- | '_ \ \ / / | '_ ` _ \ / / | | '_ \| | __| | | | | |/ _` | --
--- | | | \ V /| | | | | | | / / | | | | | | |_ _| | |_| | (_| | --
--- |_| |_|\_/ |_|_| |_| |_| /_/ |_|_| |_|_|\__(_)_|\__,_|\__,_| --
--- --
---]==========================================================================]--
+--[========================================================================[--
+-- --
+-- _ __ _ _ _ _ --
+-- _ ____ _(_)_ __ ___ / / (_)_ __ (_) |_ | |_ _ __ _ --
+-- | '_ \ \ / / | '_ ` _ \ / / | | '_ \| | __| | | | | |/ _` | --
+-- | | | \ V /| | | | | | | / / | | | | | | |_ _| | |_| | (_| | --
+-- |_| |_|\_/ |_|_| |_| |_| /_/ |_|_| |_|_|\__(_)_|\__,_|\__,_| --
+-- --
+--]========================================================================]--
@@ -1054,43 +1054,6 @@ command! -bar -range=%
--- ftplugin {{{1
-
--- This command do the followings:
--- * Execute |:setlocal| for each options.
--- * Set information to restore the original setting to b:|undo_ftplugin|.
-
--- This command is used in my/ftplugin/*.vim.
-
--- Note: specify only single option.
-
-vim.cmd([[
-function My_ftplugin_setlocal(qargs)
- execute 'setlocal' a:qargs
-
- let option_name = substitute(a:qargs, '\L.*', '', '')
-
- if option_name ==# 'shiftwidth' && exists(':IndentLinesReset') ==# 2
- IndentLinesReset
- end
-
- if exists('b:undo_ftplugin')
- let b:undo_ftplugin .= '|setlocal ' .. option_name .. '<'
- else
- let b:undo_ftplugin = 'setlocal ' .. option_name .. '<'
- end
-endfunction
-]])
-
-vim.cmd([[
-command! -nargs=+
- \ FtpluginSetLocal
- \ call My_ftplugin_setlocal(<q-args>)
-]])
-
-
-
-
-- Appearance {{{1
-- Color scheme {{{2
@@ -1884,7 +1847,3 @@ G.yankround_use_region_hl = true
--- Modelines {{{1
-
--- vim: expandtab:softtabstop=3:shiftwidth=3:textwidth=80:colorcolumn=+1:
--- vim: foldenable:foldmethod=marker:foldlevel=0: