From 6c2077e466646c156e9372e6c53d926750751f6c Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 23 Feb 2023 20:35:42 +0200 Subject: Add dashboard mapping --- lua/user/keys.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 0d275d2..c957e05 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -297,6 +297,7 @@ map("n", "gR", "TroubleToggle lsp_references") -- Replacer map('n', 'qr', ':lua require("replacer").run()') +-- Quickfix map("n", "q", function() if vim.fn.getqflist({ winid = 0 }).winid ~= 0 then require('plugins.quickfix').close() @@ -305,3 +306,6 @@ map("n", "q", function() --require("quickfix").open() end end, { desc = "Toggle quickfix window" }) + +-- Dashboard +map("n", "db", "Dashboard") -- cgit v1.2.3 From 6342326b34994e4a5bfa636d4d113cc646879db3 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 23 Feb 2023 20:41:06 +0200 Subject: Changed colorscheme to "nightfly" --- lua/plugins/colorscheme.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index 6ea5cdb..346bc4a 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -1,7 +1,7 @@ -- Colorscheme -- Available colorschemes: -- [[ nightfly ayu onedark doom-one ]] -local colorscheme = "doom-one" +local colorscheme = "nightfly" local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) if not status_ok then vim.notify("colorscheme " .. colorscheme .. " not found!") -- cgit v1.2.3 From a20adc219f47bab22441bf6dec8f2bbceb28eb26 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 23 Feb 2023 20:41:55 +0200 Subject: Changed signs = true, in vim.lsp.handlers["textDocument/publishDiagnostic"] --- lua/plugins/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index f00897f..7962308 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -310,7 +310,7 @@ vim.diagnostic.config({ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { underline = false, virtual_text = false, - signs = false, + signs = true, update_in_insert = false, }) vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" }) -- cgit v1.2.3 From 1afff5c4e157d5c2a87c39f90faeb0a9410f4b56 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 23 Feb 2023 20:42:39 +0200 Subject: Experimental feat@ trying to nullify progress message updates on text change --- lua/plugins/null-ls.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/plugins/null-ls.lua b/lua/plugins/null-ls.lua index f50827a..b96d883 100644 --- a/lua/plugins/null-ls.lua +++ b/lua/plugins/null-ls.lua @@ -6,8 +6,19 @@ require("null-ls").setup({ --debug = true, disabled_filetypes = { "PKGBUILD" }, timeout_ms = 5000, - async = true, + --async = true, debounce = 150, + log = { + enable = true, + level = 'warn', + use_console = 'async', + }, + update_in_insert = false, + --fallback_severity = vim.diagnostic.severity.ERROR, + --log_level = "warn", + --on_attach = nil, + --on_init = nil, + --on_exit = nil, sources = { --require("null-ls").builtins.formatting.shfmt, -- shell script formatting require("null-ls").builtins.diagnostics.dotenv_linter, -- cgit v1.2.3