This commit is contained in:
Henrik Bakken
2021-09-11 13:28:40 +02:00
parent 5c656eeac5
commit 38639714f2
2 changed files with 10 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@
filemode = false filemode = false
pager = diff-so-fancy | less --tabs=4 -RFX pager = diff-so-fancy | less --tabs=4 -RFX
autorcrlf = true autorcrlf = true
editor = nvim
[user] [user]
name = Henrik Bakken name = Henrik Bakken
email = bakken.henrik@gmail.com email = bakken.henrik@gmail.com
+9 -2
View File
@@ -402,7 +402,11 @@ require("packer").startup {function(use)
end end
} }
use {"psf/black"} use {"psf/black",
config = function()
vim.g.black_fast = 1
end
}
-- treesitter -- treesitter
use {"nvim-treesitter/nvim-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 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 width = 60, -- width of the list when position is left or right
icons = true, -- use devicons for filenames 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_open = "", -- icon used for open folds
fold_closed = "", -- icon used for closed folds fold_closed = "", -- icon used for closed folds
action_keys = { -- key mappings for actions in the trouble list 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 map = vim.api.nvim_set_keymap
local opts = { noremap = true } local opts = { noremap = true }
map("n", "<C-t>", ":Trouble lsp_workspace_diagnostics<cr>", opts) map("n", "<C-t>", ":Trouble lsp_workspace_diagnostics<cr>", opts)
map("n", "<F6>", ":Trouble quickfix<cr>", opts)
map("n", "<F7>", ":Trouble loclist<cr>", opts)
map("n", "<F8>", ":Trouble lsp_references<cr>", opts)
end end
} }