fix(nvim): use opt_local for ftplugin

This commit is contained in:
Price Hiller 2022-10-26 09:48:18 -05:00
parent 920c57e994
commit fbe98b8361
8 changed files with 10 additions and 16 deletions

View File

@ -1,3 +1,3 @@
local file_loc = vim.fn.expand('%:p:h')
vim.opt.makeprg = 'docker build ' .. file_loc
vim.opt_local.makeprg = 'docker build ' .. file_loc

View File

@ -1 +1 @@
vim.opt.filetype = 'gitcommit'
vim.opt_local.filetype = 'gitcommit'

View File

@ -1 +1 @@
vim.opt.filetype = 'yaml'
vim.opt_local.filetype = 'yaml'

View File

@ -1,4 +1,2 @@
local opt = vim.opt
opt.tabstop = 2
opt.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2

View File

@ -1,2 +1 @@
vim.opt.expandtab = false
vim.opt_local.expandtab = false

View File

@ -1,5 +1,3 @@
local opt = vim.opt
opt.tabstop = 2
opt.shiftwidth = 2
opt.textwidth = 0
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2
vim.opt_local.textwidth = 0

View File

@ -1,2 +1 @@
vim.opt.expandtab = false
vim.opt_local.expandtab = false

View File

@ -1,3 +1,3 @@
vim.opt.expandtab = false
vim.opt_local.expandtab = false
vim.opt.tabstop = 4
vim.opt_local.expandtab = false
vim.opt_local.tabstop = 4