Initial nixos configuration

This commit is contained in:
Marko Korhonen 2024-09-15 21:02:35 +03:00
parent 4e4edec989
commit 74b2ebd884
247 changed files with 206 additions and 36718 deletions

View file

@ -1,28 +0,0 @@
-- Better folds
--- @type LazyPluginSpec
return {
"kevinhwang91/nvim-ufo",
dependencies = { "kevinhwang91/promise-async" },
--- @type UfoConfig
opts = {
close_fold_kinds_for_ft = {
default = { "imports" },
},
},
--- @param opts UfoConfig
config = function(_, opts)
local ufo = require("ufo")
ufo.setup(opts)
-- Using ufo, we need to remap `zR` and `zM`
vim.keymap.set("n", "zR", ufo.openAllFolds)
vim.keymap.set("n", "zM", ufo.closeAllFolds)
-- Fold settings
local o = vim.o
o.foldcolumn = "1"
o.foldlevel = 99
o.foldlevelstart = 99
o.foldenable = true
end,
}