Skip to content

Commit

Permalink
fix(neovim): opt in ftplugin/*.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
nanozuki committed Nov 8, 2023
1 parent ca6bb72 commit f71dbff
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 60 deletions.
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/css.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
8 changes: 4 additions & 4 deletions configs/nvim/ftplugin/go.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.opt.expandtab = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt_local.expandtab = false
vim.opt_local.tabstop = 4
vim.opt_local.softtabstop = 4
vim.opt_local.shiftwidth = 4
8 changes: 4 additions & 4 deletions configs/nvim/ftplugin/gomod.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.opt.expandtab = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt_local.expandtab = false
vim.opt_local.tabstop = 4
vim.opt_local.softtabstop = 4
vim.opt_local.shiftwidth = 4
8 changes: 4 additions & 4 deletions configs/nvim/ftplugin/gotmpl.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.opt.expandtab = false
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt_local.expandtab = false
vim.opt_local.tabstop = 4
vim.opt_local.softtabstop = 4
vim.opt_local.shiftwidth = 4
2 changes: 1 addition & 1 deletion configs/nvim/ftplugin/help.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vim.opt.colorcolumn = '80'
vim.opt_local.colorcolumn = '80'
vim.cmd.wincmd('L')
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/html.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/javascript.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/javascriptreact.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/json.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/lua.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
2 changes: 1 addition & 1 deletion configs/nvim/ftplugin/make.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vim.opt.expandtab = false
vim.opt_local.expandtab = false
10 changes: 5 additions & 5 deletions configs/nvim/ftplugin/markdown.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
vim.opt.colorcolumn = '80'
vim.opt.textwidth = 80
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.colorcolumn = '80'
vim.opt_local.textwidth = 80
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/nix.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/proto.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/terraform.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
4 changes: 2 additions & 2 deletions configs/nvim/ftplugin/text.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vim.opt.colorcolumn = '80'
vim.opt.textwidth = 80
vim.opt_local.colorcolumn = '80'
vim.opt_local.textwidth = 80
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/typescript.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/typescriptreact.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/xml.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
6 changes: 3 additions & 3 deletions configs/nvim/ftplugin/yaml.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2

0 comments on commit f71dbff

Please sign in to comment.