add nvim lint
This commit is contained in:
parent
20a1476c08
commit
63124755d3
1 changed files with 99 additions and 99 deletions
|
@ -1,124 +1,124 @@
|
||||||
-- bootstrap lazy.nvim
|
-- bootstrap lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
"--branch=stable", -- latest stable release
|
"--branch=stable", -- latest stable release
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
local plugins = {
|
local plugins = {
|
||||||
|
|
||||||
-- whats an ide without a file explorer
|
-- whats an ide without a file explorer
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
|
||||||
-- colorscheme
|
-- colorscheme
|
||||||
{ "bluz71/vim-moonfly-colors", name = "moonfly", lazy = false, priority = 1000 },
|
{ "bluz71/vim-moonfly-colors", name = "moonfly", lazy = false, priority = 1000 },
|
||||||
|
|
||||||
-- default bar only looks good on linux
|
-- default bar only looks good on linux
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
|
|
||||||
-- syntax highlighting apparently
|
-- syntax highlighting apparently
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
|
|
||||||
-- like fzf but goofier
|
-- like fzf but goofier
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
version = "0.1.1",
|
version = "0.1.1",
|
||||||
dependencies = { { "nvim-lua/plenary.nvim" } },
|
dependencies = { { "nvim-lua/plenary.nvim" } },
|
||||||
},
|
},
|
||||||
-- lsp stuff
|
-- lsp stuff
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- completion
|
-- completion
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
"hrsh7th/cmp-buffer",
|
"hrsh7th/cmp-buffer",
|
||||||
"hrsh7th/cmp-path",
|
"hrsh7th/cmp-path",
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
"onsails/lspkind.nvim",
|
"onsails/lspkind.nvim",
|
||||||
|
|
||||||
-- lint and formatting
|
-- lint and formatting
|
||||||
"mhartington/formatter.nvim",
|
"mhartington/formatter.nvim",
|
||||||
|
"mfussenegger/nvim-lint",
|
||||||
|
|
||||||
-- snippet
|
-- snippet
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
"saadparwaiz1/cmp_luasnip",
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
|
||||||
-- auto close to prevent carpal tunnel :
|
-- auto close to prevent carpal tunnel :
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
|
|
||||||
-- git stuff lol
|
-- git stuff lol
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
|
|
||||||
-- flex
|
-- flex
|
||||||
"andweeb/presence.nvim",
|
"andweeb/presence.nvim",
|
||||||
|
|
||||||
-- color picker
|
-- color picker
|
||||||
"ziontee113/color-picker.nvim",
|
"ziontee113/color-picker.nvim",
|
||||||
|
|
||||||
-- 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
|
|
||||||
'voldikss/vim-floaterm',
|
|
||||||
|
|
||||||
|
-- floating terminal, useful to mimic/be better than vscode
|
||||||
|
"voldikss/vim-floaterm",
|
||||||
}
|
}
|
||||||
|
|
||||||
require("lazy").setup(plugins, {})
|
require("lazy").setup(plugins, {})
|
||||||
|
|
Loading…
Reference in a new issue