~tristan957/dotfiles

e95e97a87745b78fd20de2ea31771f8a0c979535 — Tristan Partin 4 months ago e759819
Add keybind for opening diagnostics floating window
M nvim/.config/nvim/after/plugin/diagnostics.lua => nvim/.config/nvim/after/plugin/diagnostics.lua +7 -1
@@ 1,7 1,13 @@
vim.diagnostic.config({
	virtual_text = false,
	signs = true,
	source = "always",
	float = { border = "single" },
})

vim.cmd([[au CursorHold * lua vim.diagnostic.open_float(0,{scope = "cursor"})]])
vim.api.nvim_set_keymap(
	"n",
	"<leader>df",
	'<cmd>:lua vim.diagnostic.open_float(nil, {scope = "cursor"})<cr>',
	{ noremap = true }
)

M nvim/.config/nvim/lua/tristan957/trouble.lua => nvim/.config/nvim/lua/tristan957/trouble.lua +1 -1
@@ 16,7 16,7 @@ require("trouble").setup({

vim.api.nvim_set_keymap(
	"n",
	"<leader>d",
	"<leader>dt",
	"<cmd>:TroubleToggle<cr>",
	{ noremap = true, silent = true }
)