Change a lot of neovim stuff
and remove some outdated firefox profiles
This commit is contained in:
parent
c36f93d9c9
commit
a39544b93d
18 changed files with 119 additions and 145 deletions
home/features/neovim/config/lua/my
|
@ -306,5 +306,19 @@ function M.prepareLazySpec(spec)
|
|||
end
|
||||
end
|
||||
-- }}}
|
||||
-- {{{ Theming
|
||||
local theme = vim.g.nix_theme
|
||||
|
||||
M.theme = theme
|
||||
|
||||
function M.theme_contains(name)
|
||||
return string.find(theme.name, name) ~= nil
|
||||
end
|
||||
|
||||
function M.theme_variant(name)
|
||||
-- +1 for 1-indexed strings and +1 for the space between name and variant
|
||||
return string.lower(string.sub(theme.name, string.len(name) + 2))
|
||||
end
|
||||
-- }}}
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue