add nvim lint

This commit is contained in:
Sakooooo 2023-08-23 17:01:04 +00:00
parent 20a1476c08
commit 63124755d3
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

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