Compare commits
4 commits
569e384a34
...
03e1767b2a
Author | SHA1 | Date | |
---|---|---|---|
03e1767b2a | |||
1e507b9b49 | |||
69b9c614f3 | |||
7136209ba7 |
4 changed files with 6 additions and 59 deletions
|
@ -45,7 +45,7 @@ in
|
|||
enable = mkEnableOption "enable";
|
||||
type = mkOption {
|
||||
default = "amd";
|
||||
description = "The type of ollama package to install, AMD GPU accelerated or NVIDIA GPU accelerated.";
|
||||
description = "The type of ollama package to install, accelerated by an AMD GPU, NVIDIA GPU or CPU.";
|
||||
example = "amd";
|
||||
type = types.enum [
|
||||
"amd"
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
---@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,35 +90,13 @@ return {
|
|||
opts = function(_, opts)
|
||||
local transparent = require "transparent"
|
||||
|
||||
opts.groups = {
|
||||
"Comment",
|
||||
"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.exclude_groups = {
|
||||
"StatusLine",
|
||||
"StatusLineNC",
|
||||
}
|
||||
|
||||
opts.extra_groups = {
|
||||
"BlinkCmpSignatureHelpActiveParameter",
|
||||
"CursorColumn",
|
||||
"CursorLineFold",
|
||||
"CursorLineSign",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
# Enable GIT.
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
|
||||
aliases = {
|
||||
# List aliases
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue