From 38639714f2f4fee47e79e5cea6d699558d3d88ae Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Sat, 11 Sep 2021 13:28:40 +0200 Subject: [PATCH] updates --- HOME/.gitconfig | 1 + nvim/init.lua | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/HOME/.gitconfig b/HOME/.gitconfig index bb11679..b5f8b8b 100644 --- a/HOME/.gitconfig +++ b/HOME/.gitconfig @@ -2,6 +2,7 @@ filemode = false pager = diff-so-fancy | less --tabs=4 -RFX autorcrlf = true + editor = nvim [user] name = Henrik Bakken email = bakken.henrik@gmail.com diff --git a/nvim/init.lua b/nvim/init.lua index 589befe..a73f682 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -402,7 +402,11 @@ require("packer").startup {function(use) end } - use {"psf/black"} + use {"psf/black", + config = function() + vim.g.black_fast = 1 + end + } -- treesitter use {"nvim-treesitter/nvim-treesitter", @@ -536,7 +540,7 @@ use {"nvim-treesitter/nvim-treesitter", height = 10, -- height of the trouble list when position is top or bottom width = 60, -- width of the list when position is left or right icons = true, -- use devicons for filenames - mode = "lsp_workspace_diagnostics", -- "lsp_workspace_diagnostics", "lsp_document_diagnostics", "quickfix", "lsp_references", "loclist" + mode = "quickfix", -- "lsp_workspace_diagnostics", "lsp_document_diagnostics", "quickfix", "lsp_references", "loclist" fold_open = "", -- icon used for open folds fold_closed = "", -- icon used for closed folds action_keys = { -- key mappings for actions in the trouble list @@ -567,6 +571,9 @@ use {"nvim-treesitter/nvim-treesitter", local map = vim.api.nvim_set_keymap local opts = { noremap = true } map("n", "", ":Trouble lsp_workspace_diagnostics", opts) + map("n", "", ":Trouble quickfix", opts) + map("n", "", ":Trouble loclist", opts) + map("n", "", ":Trouble lsp_references", opts) end }