Change theme to moonfly
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
--[[
|
||||
Copyright 2023 Oscar Wallberg
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
-- https://github.com/catppuccin/nvim
|
||||
|
||||
local function setup()
|
||||
local catppuccin = require("catppuccin")
|
||||
|
||||
-- Sometimes requires running :CatppuccinCompile,
|
||||
-- like when switching to a font that supports italics.
|
||||
catppuccin.setup({
|
||||
flavour = "mocha", -- latte, frappe, macchiato, mocha
|
||||
no_italic = false,
|
||||
styles = {
|
||||
comments = { "italic", },
|
||||
},
|
||||
integrations = {
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
nvimtree = true,
|
||||
treesitter = true,
|
||||
notify = true,
|
||||
aerial = true,
|
||||
indent_blankline = {
|
||||
enabled = true,
|
||||
colored_indent_levels = false,
|
||||
},
|
||||
mason = true,
|
||||
neogit = true,
|
||||
noice = true,
|
||||
dap = {
|
||||
enabled = true,
|
||||
enable_ui = true,
|
||||
},
|
||||
native_lsp = {
|
||||
enabled = true,
|
||||
virtual_text = {
|
||||
errors = { "italic", },
|
||||
hints = { "italic", },
|
||||
warnings = { "italic", },
|
||||
information = { "italic", },
|
||||
},
|
||||
underlines = {
|
||||
errors = { "underline", },
|
||||
hints = { "underline", },
|
||||
warnings = { "underline", },
|
||||
information = { "underline", },
|
||||
},
|
||||
inlay_hints = {
|
||||
background = true,
|
||||
},
|
||||
},
|
||||
telescope = {
|
||||
enabled = true,
|
||||
},
|
||||
lsp_trouble = true,
|
||||
},
|
||||
})
|
||||
|
||||
catppuccin.load()
|
||||
end
|
||||
|
||||
return setup
|
||||
+15
-2
@@ -36,7 +36,7 @@ local function setup()
|
||||
lspkind = module
|
||||
end)
|
||||
|
||||
cmp.setup({
|
||||
local opt = {
|
||||
enabled = function ()
|
||||
-- disable completion in comments
|
||||
local context = require "cmp.config.context"
|
||||
@@ -125,7 +125,20 @@ local function setup()
|
||||
{ name = "path", },
|
||||
-- { name = 'buffer' },
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
utils.try_require("moonfly", module_name, function (_)
|
||||
local winhighlight = {
|
||||
winhighlight =
|
||||
"Normal:NormalFloat,FloatBorder:FloatBorder,CursorLine:PmenuSel",
|
||||
}
|
||||
opt.window = {
|
||||
completion = cmp.config.window.bordered(winhighlight),
|
||||
documentation = cmp.config.window.bordered(winhighlight),
|
||||
}
|
||||
end)
|
||||
|
||||
cmp.setup(opt)
|
||||
|
||||
cmp.setup.cmdline(
|
||||
"/",
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
--[[
|
||||
Copyright 2023 Oscar Wallberg
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
-- https://github.com/bluz71/vim-moonfly-colors
|
||||
|
||||
local function setup()
|
||||
vim.g.moonflyNormalFloat = true
|
||||
|
||||
vim.cmd.colorscheme("moonfly")
|
||||
end
|
||||
|
||||
return setup
|
||||
|
||||
Reference in New Issue
Block a user