add nvim lint
This commit is contained in:
parent
20a1476c08
commit
63124755d3
1 changed files with 99 additions and 99 deletions
|
@ -12,7 +12,7 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
local plugins = {
|
local plugins = {
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ local plugins = {
|
||||||
|
|
||||||
-- lint and formatting
|
-- lint and formatting
|
||||||
"mhartington/formatter.nvim",
|
"mhartington/formatter.nvim",
|
||||||
|
"mfussenegger/nvim-lint",
|
||||||
|
|
||||||
-- snippet
|
-- snippet
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
|
@ -71,54 +72,53 @@ local plugins = {
|
||||||
|
|
||||||
-- startup
|
-- startup
|
||||||
{
|
{
|
||||||
'glepnir/dashboard-nvim',
|
"glepnir/dashboard-nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require('dashboard').setup {
|
require("dashboard").setup({
|
||||||
theme = 'doom', -- theme is doom and hyper default is hyper
|
theme = "doom", -- theme is doom and hyper default is hyper
|
||||||
config = {
|
config = {
|
||||||
-- todo https://github.com/nvimdev/dashboard-nvim
|
-- todo https://github.com/nvimdev/dashboard-nvim
|
||||||
header = {
|
header = {
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
' █████████ █████████ █████ ████ ███████ ',
|
" █████████ █████████ █████ ████ ███████ ",
|
||||||
' ███░░░░░███ ███░░░░░███ ░░███ ███░ ███░░░░░███ ',
|
" ███░░░░░███ ███░░░░░███ ░░███ ███░ ███░░░░░███ ",
|
||||||
'░███ ░░░ ░███ ░███ ░███ ███ ███ ░░███',
|
"░███ ░░░ ░███ ░███ ░███ ███ ███ ░░███",
|
||||||
'░░█████████ ░███████████ ░███████ ░███ ░███',
|
"░░█████████ ░███████████ ░███████ ░███ ░███",
|
||||||
' ░░░░░░░░███ ░███░░░░░███ ░███░░███ ░███ ░███',
|
" ░░░░░░░░███ ░███░░░░░███ ░███░░███ ░███ ░███",
|
||||||
' ███ ░███ ░███ ░███ ░███ ░░███ ░░███ ███',
|
" ███ ░███ ░███ ░███ ░███ ░░███ ░░███ ███",
|
||||||
'░░█████████ █████ █████ █████ ░░████ ░░░███████░',
|
"░░█████████ █████ █████ █████ ░░████ ░░░███████░",
|
||||||
'░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░ ░░░░░░░ ',
|
"░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░ ░░░░░░░ ",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
'',
|
"",
|
||||||
}, --your header
|
}, --your header
|
||||||
center = {
|
center = {
|
||||||
{
|
{
|
||||||
icon = ' ',
|
icon = " ",
|
||||||
icon_hl = 'Title',
|
icon_hl = "Title",
|
||||||
desc = 'Find File ',
|
desc = "Find File ",
|
||||||
desc_hl = 'String',
|
desc_hl = "String",
|
||||||
keymap = 'SPC SPC',
|
keymap = "SPC SPC",
|
||||||
key_hl = 'Number',
|
key_hl = "Number",
|
||||||
action = 'lua print(2)'
|
action = "lua print(2)",
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
})
|
||||||
end,
|
end,
|
||||||
event = 'VimEnter',
|
event = "VimEnter",
|
||||||
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
|
dependencies = { { "nvim-tree/nvim-web-devicons" } },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- floating terminal, useful to mimic/be better than vscode
|
-- floating terminal, useful to mimic/be better than vscode
|
||||||
'voldikss/vim-floaterm',
|
"voldikss/vim-floaterm",
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require("lazy").setup(plugins, {})
|
require("lazy").setup(plugins, {})
|
||||||
|
|
Loading…
Reference in a new issue