From 3e02c57c0a6f774947bc925d4a6bf7c2a7c90f45 Mon Sep 17 00:00:00 2001 From: kossLAN Date: Sat, 1 Feb 2025 00:39:11 -0500 Subject: [PATCH] nvim/qml: add proper tab width --- nvim/ftplugin/qml.lua | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/nvim/ftplugin/qml.lua b/nvim/ftplugin/qml.lua index 3a13d18..7250b84 100644 --- a/nvim/ftplugin/qml.lua +++ b/nvim/ftplugin/qml.lua @@ -2,26 +2,6 @@ if vim.fn.executable('qmlformat') ~= 1 then return end --- Stupid conform doesn't support qmlformat, and I don't want to download a --- whole new fucking plugin so uh yea this is it ig. --- vim.api.nvim_create_autocmd('BufWritePre', { --- pattern = '*.qml', --- callback = function() --- local bufnr = vim.api.nvim_get_current_buf() --- local filename = vim.api.nvim_buf_get_name(bufnr) --- local cmd = string.format('qmlformat -i "%s"', filename) --- --- local output = vim.fn.system(cmd) --- local error_code = vim.v.shell_error --- --- if error_code ~= 0 then --- vim.notify( --- string.format('qmlformat failed (code %d):\nCommand: %s\nOutput: %s', error_code, cmd, output), --- vim.log.levels.ERROR --- ) --- end --- --- vim.api.nvim_buf_set_option(bufnr, 'modified', false) --- vim.cmd('edit!') --- end, --- }) +vim.bo.tabstop = 4 +vim.bo.shiftwidth = 4 +vim.bo.expandtab = true