Initial nixos configuration
This commit is contained in:
parent
4e4edec989
commit
74b2ebd884
247 changed files with 206 additions and 36718 deletions
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue