chore: add oxlint, take upstream changes

This commit is contained in:
2026-07-23 21:45:14 -07:00
parent d72d23a06e
commit 6ef459026f
2 changed files with 26 additions and 2 deletions
+23 -2
View File
@@ -51,6 +51,25 @@ vim.pack.add(
{ src = "https://github.com/esmuellert/nvim-eslint" }, -- Linter
{ src = "https://github.com/ibhagwan/fzf-lua" }, -- FZF Fuzzy Finder
}
{
{ src = "https://github.com/nvim-lua/plenary.nvim" }, -- Base functions library
{ src = "https://github.com/folke/lazydev.nvim" }, -- Lua Vim types
{ src = "https://github.com/andythigpen/nvim-coverage" }, -- Code coverage visualuzer
{ src = "https://github.com/nvim-mini/mini.icons" }, -- Icons for Ctrl-P
{ src = "https://github.com/nvim-mini/mini.pick" }, -- Ctrl-P Alternative
{ src = "https://github.com/nvim-mini/mini.extra" }, -- Additional things for mini tools
{ src = "https://github.com/lewis6991/gitsigns.nvim" }, -- Show git changes in the gutter
{ src = "https://github.com/neovim/nvim-lspconfig" }, -- Common LSP Configurations
{ src = "https://github.com/sbdchd/neoformat" }, -- Formatter
{ src = "https://github.com/tpope/vim-fugitive" }, -- Git bindings
{ src = "https://github.com/vim-airline/vim-airline-themes" }, -- Status bar theme
{ src = "https://github.com/vim-airline/vim-airline" }, -- Status bar
{ src = "https://github.com/rebelot/kanagawa.nvim" }, -- Theme
{ src = "https://github.com/mfussenegger/nvim-lint" }, -- Linter
{ src = "https://github.com/rachartier/tiny-inline-diagnostic.nvim" }, -- Inline diagnostics
{ src = "https://github.com/j-hui/fidget.nvim" }, -- LSP Status Popup
{ src = "https://github.com/xvzc/chezmoi.nvim" }, -- Chezmoi dotfiles manager
}
)
-- Airline
@@ -69,7 +88,8 @@ require("coverage").setup()
-- Lint
require("lint").linters_by_ft = {
sh = { "shellcheck" }
sh = { "shellcheck" },
ts = { "oxlint" },
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
callback = function()
@@ -81,7 +101,7 @@ vim.api.nvim_create_autocmd({ "BufWritePost" }, {
vim.cmd.colorscheme "kanagawa-dragon"
-- LSP
vim.lsp.enable({ "lua_ls", "ts_ls", "bashls", "yamlls", "graphql", "jsonls" })
vim.lsp.enable({ "lua_ls", "ts_ls", "bashls", "yamlls", "graphql", "jsonls", "oxlint" })
---@type vim.lsp.Config
local lua_ls_config = {
---@type lspconfig.settings.lua_ls
@@ -114,6 +134,7 @@ vim.opt.completeopt = { 'menuone', 'noselect', 'fuzzy' }
-- Fidget
require("fidget").setup {}
-- Diagnostic
require('tiny-inline-diagnostic').setup()
vim.diagnostic.config({ virtual_text = false })