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 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, {})