neorg unused and removed, neoformat

This commit is contained in:
2026-05-16 23:06:43 +02:00
parent 6dafec86f9
commit f19c66766f
3 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ require "config.lazy"
require "mappings" require "mappings"
require "autocmd" require "autocmd"
vim.cmd "source ~/.config/nvim/suda.vim" vim.cmd "source ~/.config/nvim/suda.vim"
local time = tonumber(os.date "%H") -- local time = tonumber(os.date "%H")
vim.filetype.add { vim.filetype.add {
pattern = {[".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh"} pattern = {[".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh"}
+16
View File
@@ -1 +1,17 @@
local autocmd = vim.api.nvim_create_autocmd local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup
local neoformat_group = augroup("NeoformatOnSave", { clear = true })
autocmd("BufWritePost", {
group = neoformat_group,
callback = function()
if vim.bo.buftype ~= "" or vim.bo.modifiable == false or vim.bo.readonly then
return
end
if vim.fn.exists ":Neoformat" ~= 2 then
return
end
vim.cmd "silent! Neoformat"
end,
})
-5
View File
@@ -1,5 +0,0 @@
require("neorg").setup {
load = {
["core.defaults"] = {},
},
}