Compare commits
No commits in common. "03e1767b2afdb8f47b413cc73adfb2101bb068df" and "569e384a34e287a021fe7ab5b52c3415e51ec8a1" have entirely different histories.
03e1767b2a
...
569e384a34
4 changed files with 59 additions and 6 deletions
|
@ -45,7 +45,7 @@ in
|
||||||
enable = mkEnableOption "enable";
|
enable = mkEnableOption "enable";
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
default = "amd";
|
default = "amd";
|
||||||
description = "The type of ollama package to install, accelerated by an AMD GPU, NVIDIA GPU or CPU.";
|
description = "The type of ollama package to install, AMD GPU accelerated or NVIDIA GPU accelerated.";
|
||||||
example = "amd";
|
example = "amd";
|
||||||
type = types.enum [
|
type = types.enum [
|
||||||
"amd"
|
"amd"
|
||||||
|
|
32
modules/neovim/lua/plugins/nvim-ufo.lua
Normal file
32
modules/neovim/lua/plugins/nvim-ufo.lua
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---@type LazySpec
|
||||||
|
return {
|
||||||
|
"wizardlink/nvim-ufo",
|
||||||
|
opts = {
|
||||||
|
provider_selector = function(_, filetype, _)
|
||||||
|
---@type table<string, UfoProviderEnum | UfoProviderEnum[]>
|
||||||
|
local ftDefaults = {
|
||||||
|
cs = "treesitter",
|
||||||
|
}
|
||||||
|
|
||||||
|
local function handleFallbackException(bufnr, err, providerName)
|
||||||
|
if type(err) == "string" and err:match "UfoFallbackException" then
|
||||||
|
return require("ufo").getFolds(bufnr, providerName)
|
||||||
|
else
|
||||||
|
return require("promise").reject(err)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return ftDefaults[filetype]
|
||||||
|
or function(bufnr)
|
||||||
|
return require("ufo")
|
||||||
|
.getFolds(bufnr, "lsp")
|
||||||
|
:catch(function(err)
|
||||||
|
return handleFallbackException(bufnr, err, "treesitter")
|
||||||
|
end)
|
||||||
|
:catch(function(err)
|
||||||
|
return handleFallbackException(bufnr, err, "indent")
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -90,13 +90,35 @@ return {
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local transparent = require "transparent"
|
local transparent = require "transparent"
|
||||||
|
|
||||||
opts.exclude_groups = {
|
opts.groups = {
|
||||||
"StatusLine",
|
"Comment",
|
||||||
"StatusLineNC",
|
"Conditional",
|
||||||
|
"Constant",
|
||||||
|
"CursorLine",
|
||||||
|
"CursorLineNr",
|
||||||
|
"EndOfBuffer",
|
||||||
|
"Function",
|
||||||
|
"Identifier",
|
||||||
|
"LineNr",
|
||||||
|
"NonText",
|
||||||
|
"Normal",
|
||||||
|
"NormalNC",
|
||||||
|
"Operator",
|
||||||
|
"PreProc",
|
||||||
|
"Repeat",
|
||||||
|
"SignColumn",
|
||||||
|
"Special",
|
||||||
|
"Statement",
|
||||||
|
-- "StatusLine",
|
||||||
|
-- "StatusLineNC",
|
||||||
|
"String",
|
||||||
|
"Structure",
|
||||||
|
"Todo",
|
||||||
|
"Type",
|
||||||
|
"Underlined",
|
||||||
}
|
}
|
||||||
|
|
||||||
opts.extra_groups = {
|
opts.extra_groups = {
|
||||||
"BlinkCmpSignatureHelpActiveParameter",
|
|
||||||
"CursorColumn",
|
"CursorColumn",
|
||||||
"CursorLineFold",
|
"CursorLineFold",
|
||||||
"CursorLineSign",
|
"CursorLineSign",
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
# Enable GIT.
|
# Enable GIT.
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
# List aliases
|
# List aliases
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue