Compare commits

..

No commits in common. "818765d45bf64a58f4979199263e46c7f24b1996" and "337b67c7a4da9f99316e5eb9124a78e9600edd0b" have entirely different histories.

3 changed files with 0 additions and 28 deletions

View file

@ -21,6 +21,5 @@ require("lazy").setup({ { import = "plugins" } })
require("sets")
require("remaps")
require("filetypes")
require("commands")
vim.notify("starting nvim 🏕️")

View file

@ -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 = "?" }
)

View file

@ -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,
},
})