remove stylelint

This commit is contained in:
Garrett Dawson 2023-03-19 21:25:50 -06:00
parent e137556250
commit 724fb28491
2 changed files with 5 additions and 34 deletions

View file

@ -21,10 +21,6 @@ vim.keymap.set('v', '<C-j>', ":m '>+1<CR>gv=gv", { noremap = true })
vim.o.inccommand = "nosplit"
-- vim.cmd([[
-- autocmd FileType dirvish nmap <buffer> <c-o> -
-- ]])
vim.diagnostic.config({
virtual_text = {
-- source = "always", -- Or "if_many"
@ -35,9 +31,6 @@ vim.diagnostic.config({
source = "always", -- Or "if_many"
},
})
-- vim.o.updatetime = 250
-- vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
local signs = { Error = "", Warn = "", Hint = "", Info = "i" }
for type, icon in pairs(signs) do
@ -45,26 +38,4 @@ for type, icon in pairs(signs) do
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
-- function PrintDiagnostics(opts, bufnr, line_nr, client_id)
-- bufnr = bufnr or 0
-- line_nr = line_nr or (vim.api.nvim_win_get_cursor(0)[1] - 1)
-- opts = opts or { ['lnum'] = line_nr }
--
-- local line_diagnostics = vim.diagnostic.get(bufnr, opts)
-- if vim.tbl_isempty(line_diagnostics) then return end
--
-- local diagnostic_message = ""
-- for i, diagnostic in ipairs(line_diagnostics) do
-- diagnostic_message = diagnostic_message .. string.format("%d: %s", i, diagnostic.message or "")
-- print(diagnostic_message)
-- if i ~= #line_diagnostics then
-- diagnostic_message = diagnostic_message .. "\n"
-- end
-- end
-- vim.api.nvim_echo({ { diagnostic_message, "Normal" } }, false, {})
-- end
--
-- vim.cmd [[ autocmd! CursorHold * lua PrintDiagnostics() ]]
-- vim: ts=2 sts=2 sw=2 et