diff --git a/init.lua b/init.lua index 4b3ce5b..c174d3c 100644 --- a/init.lua +++ b/init.lua @@ -21,6 +21,5 @@ require("lazy").setup({ { import = "plugins" } }) require("sets") require("remaps") require("filetypes") -require("commands") vim.notify("starting nvim 🏕️") diff --git a/lua/commands.lua b/lua/commands.lua deleted file mode 100644 index 67fff56..0000000 --- a/lua/commands.lua +++ /dev/null @@ -1,21 +0,0 @@ -vim.api.nvim_create_user_command("Tabs", - function(opts) - vim.bo[0].expandtab = false - if (opts.fargs[1] ~= nil) then - vim.bo[0].shiftwidth = tonumber(opts.fargs[1]) - vim.bo[0].tabstop = tonumber(opts.fargs[1]) - end - end, - { nargs = "?" } -) - -vim.api.nvim_create_user_command("NoTabs", - function(opts) - vim.bo[0].expandtab = true - if (opts.fargs[1] ~= nil) then - vim.bo[0].shiftwidth = tonumber(opts.fargs[1]) - vim.bo[0].tabstop = tonumber(opts.fargs[1]) - end - end, - { nargs = "?" } -) diff --git a/lua/filetypes.lua b/lua/filetypes.lua index 06635db..7c232a4 100644 --- a/lua/filetypes.lua +++ b/lua/filetypes.lua @@ -12,11 +12,5 @@ vim.filetype.add({ end, idr = "idris2", wgsl = "wgsl", - nix = function(_, bufnr) - vim.bo[bufnr].shiftwidth = 2 - vim.bo[bufnr].tabstop = 2 - vim.bo[bufnr].expandtab = true - return "nix" - end, }, })