feat(go): force tabs on go files
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = "go",
|
||||||
|
callback = function ()
|
||||||
|
vim.bo.expandtab = false
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
local custom_highlight = vim.api.nvim_create_augroup("CustomHighlight", {})
|
local custom_highlight = vim.api.nvim_create_augroup("CustomHighlight", {})
|
||||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
pattern = "moonfly",
|
pattern = "moonfly",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ vim.opt.fillchars = {
|
|||||||
vim.opt.splitbelow = true
|
vim.opt.splitbelow = true
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
-- set tabline=%!MyTabLine()
|
-- set tabline=%!MyTabLine()
|
||||||
vim.opt.tabstop = 8
|
vim.opt.tabstop = 4
|
||||||
vim.opt.softtabstop = 4
|
vim.opt.softtabstop = 4
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
|
|||||||
Reference in New Issue
Block a user