[2024-05-24] Adding noice.nvim, minor aesthetic feline updates
This commit is contained in:
parent
f2cda4463e
commit
af9d132faf
@ -38,6 +38,9 @@ Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'}
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'xiyaowong/transparent.nvim'
|
||||
Plug 'justinhj/battery.nvim'
|
||||
Plug 'MunifTanjim/nui.nvim'
|
||||
Plug 'rcarriga/nvim-notify'
|
||||
Plug 'folke/noice.nvim'
|
||||
call plug#end()
|
||||
|
||||
set bg=dark
|
||||
|
@ -4,3 +4,4 @@ require('gitsigns').setup()
|
||||
require('plugins.matlab_ls')
|
||||
require('plugins.treesitter')
|
||||
require('battery').setup()
|
||||
require('plugins.noice')
|
||||
|
@ -51,7 +51,11 @@ status_components.active[1][1] = {
|
||||
status_components.active[3][1] = {
|
||||
provider = 'battery',
|
||||
left_sep = {
|
||||
str = 'block'
|
||||
{
|
||||
str = 'left',
|
||||
hl = {fg = 'fg'}
|
||||
},
|
||||
{str = 'block'}
|
||||
},
|
||||
right_sep = {
|
||||
str = 'block'
|
||||
@ -59,8 +63,20 @@ status_components.active[3][1] = {
|
||||
}
|
||||
status_components.active[3][2] = {
|
||||
provider = 'date',
|
||||
hl = function()
|
||||
return {
|
||||
name = (require('feline.providers.vi_mode').get_mode_highlight_name()) .. " ",
|
||||
fg = require('feline.providers.vi_mode').get_mode_color(),
|
||||
bg = 'bg'
|
||||
}
|
||||
end,
|
||||
left_sep = {
|
||||
str = 'block'
|
||||
{str = 'left',
|
||||
hl = function()
|
||||
return { fg = require('feline.providers.vi_mode').get_mode_color() }
|
||||
end
|
||||
},
|
||||
{str = 'block'}
|
||||
},
|
||||
right_sep = {
|
||||
str = 'block'
|
||||
@ -68,16 +84,30 @@ status_components.active[3][2] = {
|
||||
}
|
||||
status_components.active[3][3] = {
|
||||
provider = 'time',
|
||||
hl = function()
|
||||
return {
|
||||
name = (require('feline.providers.vi_mode').get_mode_highlight_name()) .. " ",
|
||||
bg = require('feline.providers.vi_mode').get_mode_color(),
|
||||
fg = 'bg',
|
||||
style = 'bold'
|
||||
}
|
||||
end,
|
||||
left_sep = {
|
||||
str = 'block'
|
||||
},
|
||||
str = 'left_filled',
|
||||
hl = function()
|
||||
return {
|
||||
fg = require('feline.providers.vi_mode').get_mode_color(),
|
||||
bg = 'bg'
|
||||
}
|
||||
end },
|
||||
right_sep = {
|
||||
str = 'block'
|
||||
}
|
||||
}
|
||||
local custom_providers = {
|
||||
time = function()
|
||||
return tostring(vim.fn.strftime('%H:%M'))
|
||||
local time = tostring(vim.fn.strftime('%H:%M'))
|
||||
return ' ' .. time
|
||||
end,
|
||||
git_add = function()
|
||||
return git_diff('added'), ' '
|
||||
@ -167,8 +197,14 @@ win_components.active[1][4] = {
|
||||
win_components.active[1][5] = {
|
||||
provider = 'file_type',
|
||||
right_sep = {
|
||||
{
|
||||
str = 'block',
|
||||
hl = { fg = 'bg' }
|
||||
},
|
||||
{
|
||||
str = 'right',
|
||||
hl = { fg = 'fg' }
|
||||
}
|
||||
}
|
||||
}
|
||||
win_components.active[3][1] = {
|
||||
|
17
nvim/lua/plugins/noice.lua
Normal file
17
nvim/lua/plugins/noice.lua
Normal file
@ -0,0 +1,17 @@
|
||||
require("noice").setup({
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
override = {
|
||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
},
|
||||
},
|
||||
-- you can enable a preset for easier configuration
|
||||
presets = {
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
command_palette = true, -- position the cmdline and popupmenu together
|
||||
long_message_to_split = true, -- long messages will be sent to a split
|
||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||
},
|
||||
})
|
@ -1,6 +1,6 @@
|
||||
require('nvim-treesitter.configs').setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "matlab", "lua", "vim", "vimdoc" },
|
||||
ensure_installed = { "matlab", "lua", "vim", "vimdoc", "regex" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user