From 724fb28491b2d93bcd8777ba9c798a3f1e0c92c2 Mon Sep 17 00:00:00 2001 From: Garrett Dawson Date: Sun, 19 Mar 2023 21:25:50 -0600 Subject: [PATCH] remove stylelint --- after/plugin/defaults.lua | 29 ----------------------------- init.lua | 10 +++++----- 2 files changed, 5 insertions(+), 34 deletions(-) diff --git a/after/plugin/defaults.lua b/after/plugin/defaults.lua index ef1ce4e8..e64c56f1 100644 --- a/after/plugin/defaults.lua +++ b/after/plugin/defaults.lua @@ -21,10 +21,6 @@ vim.keymap.set('v', '', ":m '>+1gv=gv", { noremap = true }) vim.o.inccommand = "nosplit" --- vim.cmd([[ --- autocmd FileType dirvish nmap - --- ]]) - 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 diff --git a/init.lua b/init.lua index 6263a948..02934542 100644 --- a/init.lua +++ b/init.lua @@ -117,13 +117,12 @@ require('lazy').setup({ { -- Set lualine as statusline 'nvim-lualine/lualine.nvim', + dependencies = { 'RRethy/nvim-base16' }, -- See `:help lualine.txt` opts = { + theme = 'base16', options = { - icons_enabled = false, - theme = 'base16', - component_separators = '|', - section_separators = '', + icons_enabled = true, }, }, }, @@ -403,6 +402,8 @@ end -- -- 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. +-- +-- https://github.com/williamboman/mason-lspconfig.nvim/blob/main/doc/server-mapping.md local servers = { clangd = {}, cssls = {}, @@ -410,7 +411,6 @@ local servers = { gopls = {}, pyright = {}, rust_analyzer = {}, - stylelint_lsp = {}, tsserver = {}, lua_ls = { Lua = {