Change theme to moonfly
This commit is contained in:
+12
-1
@@ -71,7 +71,7 @@ function P._setup_diagnostics()
|
||||
float = {
|
||||
show_header = false,
|
||||
source = "always",
|
||||
border = "rounded",
|
||||
border = "single",
|
||||
focusable = false,
|
||||
format = function (diagnostic)
|
||||
return string.format("%s", diagnostic.message)
|
||||
@@ -129,6 +129,17 @@ function P.on_attach(client, bufnr)
|
||||
vim.opt.updatetime = 300
|
||||
|
||||
require("lsp-inlayhints").on_attach(client, bufnr, false)
|
||||
|
||||
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
|
||||
vim.lsp.handlers.hover, {
|
||||
border = "single"
|
||||
}
|
||||
)
|
||||
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(
|
||||
vim.lsp.handlers.signature_help, {
|
||||
border = "single"
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
function P.reload_server_buf(name)
|
||||
|
||||
+8
-4
@@ -18,11 +18,11 @@ vim.loader.enable()
|
||||
|
||||
local plugins = {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
"bluz71/vim-moonfly-colors",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
name = "catppuccin",
|
||||
config = require("plugins.catppuccin"),
|
||||
name = "moonfly",
|
||||
config = require("plugins.moonfly"),
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
@@ -236,6 +236,10 @@ local plugins = {
|
||||
},
|
||||
}
|
||||
|
||||
local opts = {}
|
||||
local opts = {
|
||||
install = {
|
||||
colorscheme = { "moonfly" }
|
||||
}
|
||||
}
|
||||
|
||||
require("lazy").setup(plugins, opts)
|
||||
|
||||
@@ -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