remove stylelint
This commit is contained in:
parent
e137556250
commit
724fb28491
|
@ -21,10 +21,6 @@ vim.keymap.set('v', '<C-j>', ":m '>+1<CR>gv=gv", { noremap = true })
|
||||||
|
|
||||||
vim.o.inccommand = "nosplit"
|
vim.o.inccommand = "nosplit"
|
||||||
|
|
||||||
-- vim.cmd([[
|
|
||||||
-- autocmd FileType dirvish nmap <buffer> <c-o> -
|
|
||||||
-- ]])
|
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
-- source = "always", -- Or "if_many"
|
-- source = "always", -- Or "if_many"
|
||||||
|
@ -35,9 +31,6 @@ vim.diagnostic.config({
|
||||||
source = "always", -- Or "if_many"
|
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" }
|
local signs = { Error = "✗", Warn = "⚠", Hint = "➤", Info = "i" }
|
||||||
for type, icon in pairs(signs) do
|
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 })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
end
|
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
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
10
init.lua
10
init.lua
|
@ -117,13 +117,12 @@ require('lazy').setup({
|
||||||
{
|
{
|
||||||
-- Set lualine as statusline
|
-- Set lualine as statusline
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
|
dependencies = { 'RRethy/nvim-base16' },
|
||||||
-- See `:help lualine.txt`
|
-- See `:help lualine.txt`
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
|
||||||
icons_enabled = false,
|
|
||||||
theme = 'base16',
|
theme = 'base16',
|
||||||
component_separators = '|',
|
options = {
|
||||||
section_separators = '',
|
icons_enabled = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -403,6 +402,8 @@ end
|
||||||
--
|
--
|
||||||
-- Add any additional override configuration in the following tables. They will be passed to
|
-- Add any additional override configuration in the following tables. They will be passed to
|
||||||
-- the `settings` field of the server config. You must look up that documentation yourself.
|
-- the `settings` field of the server config. You must look up that documentation yourself.
|
||||||
|
--
|
||||||
|
-- https://github.com/williamboman/mason-lspconfig.nvim/blob/main/doc/server-mapping.md
|
||||||
local servers = {
|
local servers = {
|
||||||
clangd = {},
|
clangd = {},
|
||||||
cssls = {},
|
cssls = {},
|
||||||
|
@ -410,7 +411,6 @@ local servers = {
|
||||||
gopls = {},
|
gopls = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
rust_analyzer = {},
|
rust_analyzer = {},
|
||||||
stylelint_lsp = {},
|
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|
Loading…
Reference in New Issue