feat(nvim): re-add lualine and noice
This commit is contained in:
parent
4da372c8ce
commit
db7d2b442f
40
config/neovim/after/plugin/lualine.lua
Normal file
40
config/neovim/after/plugin/lualine.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
local status_ok, lualine = pcall(require, "lualine")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local noice = require 'noice'
|
||||
|
||||
lualine.setup {
|
||||
options = {
|
||||
component_separators = { left = '', right = '' },
|
||||
extensions = { "fzf", "quickfix" },
|
||||
icons_enabled = false,
|
||||
section_separators = { left = '', right = '' },
|
||||
theme = "catppuccin"
|
||||
},
|
||||
|
||||
sections = {
|
||||
lualine_x = {
|
||||
{
|
||||
noice.api.status.message.get_hl,
|
||||
cond = noice.api.status.message.has,
|
||||
},
|
||||
{
|
||||
noice.api.status.command.get,
|
||||
cond = noice.api.status.command.has,
|
||||
color = { fg = "#EED49F" },
|
||||
},
|
||||
{
|
||||
noice.api.status.mode.get,
|
||||
cond = noice.api.status.mode.has,
|
||||
color = { fg = "#EED49F" },
|
||||
},
|
||||
{
|
||||
noice.api.status.search.get,
|
||||
cond = noice.api.status.search.has,
|
||||
color = { fg = "#EED49F" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
66
config/neovim/after/plugin/noice.lua
Normal file
66
config/neovim/after/plugin/noice.lua
Normal file
|
@ -0,0 +1,66 @@
|
|||
local status_ok, noice = pcall(require, "noice")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local notify = require 'notify'
|
||||
|
||||
noice.setup({
|
||||
cmdline = {
|
||||
format = {
|
||||
cmdline = { icon = ">" },
|
||||
filter = { icon = "$" },
|
||||
help = { icon = "?" },
|
||||
lua = { icon = "☾" },
|
||||
search_down = { icon = "🔍⌄" },
|
||||
search_up = { icon = "🔍⌃" },
|
||||
},
|
||||
},
|
||||
lsp = {
|
||||
override = {
|
||||
["cmp.entry.get_documentation"] = true,
|
||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
},
|
||||
},
|
||||
popupmenu = {
|
||||
kind_icons = false,
|
||||
},
|
||||
presets = {
|
||||
bottom_search = true,
|
||||
command_palette = true,
|
||||
inc_rename = false,
|
||||
long_message_to_split = true,
|
||||
lsp_doc_border = false,
|
||||
},
|
||||
})
|
||||
|
||||
notify.setup({
|
||||
background_colour = "#1e222a",
|
||||
render = "minimal",
|
||||
stages = "static",
|
||||
timeout = 5000,
|
||||
})
|
||||
|
||||
vim.cmd [[
|
||||
highlight NotifyERRORBorder guifg=#ED8796
|
||||
highlight NotifyWARNBorder guifg=#EED49F
|
||||
highlight NotifyINFOBorder guifg=#A6DA95
|
||||
highlight NotifyDEBUGBorder guifg=#B8C0E0
|
||||
highlight NotifyTRACEBorder guifg=#C6A0F6
|
||||
highlight NotifyERRORIcon guifg=#ED8796
|
||||
highlight NotifyWARNIcon guifg=#EED49F
|
||||
highlight NotifyINFOIcon guifg=#A6DA95
|
||||
highlight NotifyDEBUGIcon guifg=#B8C0E0
|
||||
highlight NotifyTRACEIcon guifg=#C6A0F6
|
||||
highlight NotifyERRORTitle guifg=#ED8796
|
||||
highlight NotifyWARNTitle guifg=#EED49F
|
||||
highlight NotifyINFOTitle guifg=#A6DA95
|
||||
highlight NotifyDEBUGTitle guifg=#B8C0E0
|
||||
highlight NotifyTRACETitle guifg=#C6A0F6
|
||||
highlight link NotifyERRORBody Normal
|
||||
highlight link NotifyWARNBody Normal
|
||||
highlight link NotifyINFOBody Normal
|
||||
highlight link NotifyDEBUGBody Normal
|
||||
highlight link NotifyTRACEBody Normal
|
||||
]]
|
|
@ -81,5 +81,9 @@ cmp.setup({
|
|||
},
|
||||
})
|
||||
|
||||
local nmap = require "opdavies.keymap".nmap
|
||||
|
||||
nmap { "<leader><leader>r", "<cmd>LspRestart<cr>" }
|
||||
|
||||
require "opdavies.lsp.null-ls"
|
||||
require "opdavies.lsp.signature"
|
||||
|
|
|
@ -542,6 +542,10 @@ in
|
|||
vimPlugins.vim-tmux-navigator
|
||||
vimPlugins.vim-unimpaired
|
||||
|
||||
vimPlugins.lualine-nvim
|
||||
vimPlugins.noice-nvim
|
||||
vimPlugins.nvim-notify
|
||||
|
||||
# Git
|
||||
vimPlugins.vim-fugitive
|
||||
vimPlugins.vim-rhubarb
|
||||
|
|
Loading…
Reference in a new issue