lualine, noice, norminette, undotree added. :w on jk
This commit is contained in:
parent
1a78a7783d
commit
9d0b79ea1f
50
lua/custom/plugins/lualine.lua
Normal file
50
lua/custom/plugins/lualine.lua
Normal file
@ -0,0 +1,50 @@
|
||||
return {
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
local custom_everforest = require 'lualine.themes.everforest'
|
||||
custom_everforest.insert.a.bg = '#7fbbb3'
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = custom_everforest,
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = '' },
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
},
|
||||
ignore_focus = {},
|
||||
always_divide_middle = true,
|
||||
globalstatus = false,
|
||||
refresh = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
winbar = 1000,
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' },
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = { 'location' },
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
extensions = {},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
37
lua/custom/plugins/noice.lua
Normal file
37
lua/custom/plugins/noice.lua
Normal file
@ -0,0 +1,37 @@
|
||||
return {
|
||||
{
|
||||
'folke/noice.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
dependencies = {
|
||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||
'MunifTanjim/nui.nvim',
|
||||
-- OPTIONAL:
|
||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- If not available, we use `mini` as the fallback
|
||||
-- 'rcarriga/nvim-notify',
|
||||
},
|
||||
config = function()
|
||||
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,
|
||||
['cmp.entry.get_documentation'] = true, -- requires hrsh7th/nvim-cmp
|
||||
},
|
||||
},
|
||||
-- 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
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
13
lua/custom/plugins/norminette.lua
Normal file
13
lua/custom/plugins/norminette.lua
Normal file
@ -0,0 +1,13 @@
|
||||
return {
|
||||
{
|
||||
'hardyrafael17/norminette42.nvim',
|
||||
config = function()
|
||||
local norminette = require 'norminette'
|
||||
norminette.setup {
|
||||
runOnSave = true,
|
||||
maxErrorsToShow = 15,
|
||||
active = true,
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
29
lua/custom/plugins/undotree.lua
Normal file
29
lua/custom/plugins/undotree.lua
Normal file
@ -0,0 +1,29 @@
|
||||
return {
|
||||
{
|
||||
'jiaoshijie/undotree',
|
||||
dependencies = 'nvim-lua/plenary.nvim',
|
||||
config = true,
|
||||
keys = { -- load the plugin only when using it's keybinding:
|
||||
{ '<leader>u', "<cmd>lua require('undotree').toggle()<cr>" },
|
||||
},
|
||||
opts = {
|
||||
float_diff = true, -- using float window previews diff, set this `true` will disable layout option
|
||||
layout = 'left_bottom', -- "left_bottom", "left_left_bottom"
|
||||
position = 'left', -- "right", "bottom"
|
||||
ignore_filetype = { 'undotree', 'undotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', 'tsplayground' },
|
||||
window = {
|
||||
winblend = 30,
|
||||
},
|
||||
keymaps = {
|
||||
['j'] = 'move_next',
|
||||
['k'] = 'move_prev',
|
||||
['gj'] = 'move2parent',
|
||||
['J'] = 'move_change_next',
|
||||
['K'] = 'move_change_prev',
|
||||
['<cr>'] = 'action_enter',
|
||||
['p'] = 'enter_diffbuf',
|
||||
['q'] = 'quit',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -45,5 +45,5 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
end,
|
||||
})
|
||||
|
||||
vim.keymap.set('i', 'jk', '<Esc>')
|
||||
vim.keymap.set('i', 'jk', '<Esc>:w<CR>')
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
||||
Loading…
Reference in New Issue
Block a user