~tristan957/dotfiles

e759819bf800c5624d6497fe15b37ecce923ab67 — Tristan Partin 4 months ago 0535651
Updates for diagnostics and fix trouble.nvim
M .vscode/settings.json => .vscode/settings.json +1 -2
@@ 8,8 8,7 @@
	"Lua.runtime.version": "LuaJIT",
	"Lua.workspace.library": [
		"/usr/share/nvim/runtime",
		"~/.local/share/nvim",
		"~/.local/share/vim-plug",
		"~/.local/share/nvim/site/pack/packer/start",
	],
	"shellcheck.useWorkspaceRootAsCwd": true,
	"shellcheck.customArgs": [

A nvim/.config/nvim/after/plugin/diagnostics.lua => nvim/.config/nvim/after/plugin/diagnostics.lua +7 -0
@@ 0,0 1,7 @@
vim.diagnostic.config({
	virtual_text = false,
	signs = true,
	float = { border = "single" },
})

vim.cmd([[au CursorHold * lua vim.diagnostic.open_float(0,{scope = "cursor"})]])

M nvim/.config/nvim/lua/plugins.lua => nvim/.config/nvim/lua/plugins.lua +205 -191
@@ 13,203 13,217 @@ end

vim.cmd("packadd packer.nvim")

require("packer").startup(function(use)
	use({ "chrisbra/unicode.vim" })

	use({ "dart-lang/dart-vim-plugin", ft = { "dart" } })

	use({ "editorconfig/editorconfig-vim" })

	use({ "folke/trouble.nvim" })

	use({
		"folke/todo-comments.nvim",
		requires = { { "nvim-lua/plenary.nvim" } },
		config = function()
			require("tristan957.todo-comments")
		end,
	})

	use({ "folke/zen-mode.nvim" })

	use({ "gruvbox-community/gruvbox" })

	use({
		"hrsh7th/nvim-cmp",
		requires = {
			{ "hrsh7th/cmp-buffer" },
			{ "hrsh7th/cmp-calc" },
			{ "hrsh7th/cmp-emoji" },
			{ "hrsh7th/cmp-nvim-lsp" },
			{ "hrsh7th/cmp-nvim-lua" },
			{ "hrsh7th/cmp-path" },
			{ "nvim-neorg/neorg" },
			{
				"saadparwaiz1/cmp_luasnip",
				requires = { "L3MON4D3/LuaSnip" },
require("packer").startup({
	function(use)
		use({ "chrisbra/unicode.vim" })

		use({ "dart-lang/dart-vim-plugin", ft = { "dart" } })

		use({ "editorconfig/editorconfig-vim" })

		use({
			"folke/trouble.nvim",
			config = function()
				require("tristan957.trouble")
			end,
		})

		use({
			"folke/todo-comments.nvim",
			requires = { { "nvim-lua/plenary.nvim" } },
			config = function()
				require("tristan957.todo-comments")
			end,
		})

		use({ "folke/zen-mode.nvim" })

		use({ "gruvbox-community/gruvbox" })

		use({
			"hrsh7th/nvim-cmp",
			requires = {
				{ "hrsh7th/cmp-buffer" },
				{ "hrsh7th/cmp-calc" },
				{ "hrsh7th/cmp-emoji" },
				{ "hrsh7th/cmp-nvim-lsp" },
				{ "hrsh7th/cmp-nvim-lua" },
				{ "hrsh7th/cmp-path" },
				{ "nvim-neorg/neorg" },
				{
					"saadparwaiz1/cmp_luasnip",
					requires = { "L3MON4D3/LuaSnip" },
				},
			},
		},
		config = function()
			require("tristan957.cmp")
		end,
	})

	use({ "JoosepAlviste/nvim-ts-context-commentstring" })

	use({
		"jose-elias-alvarez/null-ls.nvim",
		config = function()
			require("tristan957.null-ls")
		end,
	})

	use({ "kevinoid/vim-jsonc" })

	use({ "L3MON4D3/LuaSnip" })

	use({
		"lewis6991/gitsigns.nvim",
		requires = { { "nvim-lua/plenary.nvim" } },
		config = function()
			require("tristan957.gitsigns")
		end,
	})

	use({ "mfussenegger/nvim-dap" })

	use({
		"nvim-neorg/neorg",
		after = { "nvim-treesitter/nvim-tresitter" },
		requires = { { "nvim-lua/plenary.nvim" } },
		disable = true, -- when the grammar is supported by upstream nvim-treesitter
		config = function()
			require("tristan957.neorg")
		end,
	})

	use({
		"neovim/nvim-lspconfig",
		requires = {
			{ "hrsh7th/cmp-nvim-lsp" },
			{ "nvim-lua/lsp-status.nvim" },
		},
		config = function()
			require("tristan957.lspconfig")
		end,
	})

	use({
		"numToStr/Comment.nvim",
		config = function()
			require("tristan957.comment")
		end,
		requires = { "JoosepAlviste/nvim-ts-context-commentstring" },
	})

	use({ "nvim-lua/lsp-status.nvim" })

	use({ "nvim-lua/popup.nvim" })

	use({
		"nvim-lua/plenary.nvim",
	})

	use({
		"nvim-lualine/lualine.nvim",
		config = function()
			require("tristan957.lualine")
		end,
	})

	use({
		"nvim-telescope/telescope.nvim",
		requires = {
			{ "nvim-lua/plenary.nvim" },
			{ "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
			{ "nvim-telescope/telescope-project.nvim" },
			{ "nvim-telescope/telescope-ui-select.nvim" },
			{ "nvim-telescope/telescope-packer.nvim" },
		},
		config = function()
			require("tristan957.telescope")
		end,
	})

	use({
		"nvim-treesitter/playground",
		requires = { { "nvim-treesitter/nvim-treesitter" } },
	})

	use({
		"nvim-treesitter/nvim-treesitter",
		run = ":TSUpdate",
		requires = { "JoosepAlviste/nvim-ts-context-commentstring" },
	})
			config = function()
				require("tristan957.cmp")
			end,
		})

		use({ "JoosepAlviste/nvim-ts-context-commentstring" })

		use({
			"jose-elias-alvarez/null-ls.nvim",
			config = function()
				require("tristan957.null-ls")
			end,
		})

		use({ "kevinoid/vim-jsonc" })

		use({ "L3MON4D3/LuaSnip" })

		use({
			"lewis6991/gitsigns.nvim",
			requires = { { "nvim-lua/plenary.nvim" } },
			config = function()
				require("tristan957.gitsigns")
			end,
		})

		use({ "mfussenegger/nvim-dap" })

		use({
			"nvim-neorg/neorg",
			after = { "nvim-treesitter/nvim-tresitter" },
			requires = { { "nvim-lua/plenary.nvim" } },
			disable = true, -- when the grammar is supported by upstream nvim-treesitter
			config = function()
				require("tristan957.neorg")
			end,
		})

		use({
			"neovim/nvim-lspconfig",
			requires = {
				{ "hrsh7th/cmp-nvim-lsp" },
				{ "nvim-lua/lsp-status.nvim" },
			},
			config = function()
				require("tristan957.lspconfig")
			end,
		})

		use({
			"numToStr/Comment.nvim",
			config = function()
				require("tristan957.comment")
			end,
			requires = { "JoosepAlviste/nvim-ts-context-commentstring" },
		})

		use({ "nvim-lua/lsp-status.nvim" })

		use({ "nvim-lua/popup.nvim" })

		use({
			"nvim-lua/plenary.nvim",
		})

		use({
			"nvim-lualine/lualine.nvim",
			config = function()
				require("tristan957.lualine")
			end,
		})

		use({
			"nvim-telescope/telescope.nvim",
			requires = {
				{ "nvim-lua/plenary.nvim" },
				{ "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
				{ "nvim-telescope/telescope-project.nvim" },
				{ "nvim-telescope/telescope-ui-select.nvim" },
				{ "nvim-telescope/telescope-packer.nvim" },
			},
			config = function()
				require("tristan957.telescope")
			end,
		})

		use({
			"nvim-treesitter/playground",
			requires = { { "nvim-treesitter/nvim-treesitter" } },
		})

		use({
			"nvim-treesitter/nvim-treesitter",
			run = ":TSUpdate",
			requires = { "JoosepAlviste/nvim-ts-context-commentstring" },
		})

		use({
			"nvim-treesitter/nvim-treesitter-textobjects",
			requires = { { "nvim-treesitter/nvim-treesitter" } },
		})

		use({
			"ray-x/go.nvim",
			ft = { "go", "gomod" },
			config = function()
				require("tristan957.go")
			end,
		})

		use({
			"rcarriga/nvim-dap-ui",
			requires = { { "mfussenegger/nvim-dap" } },
			config = function()
				require("tristan957.dap-ui")
			end,
		})

		use({ "rust-lang/rust.vim", ft = { "rust" } })

		use({
			"simrat39/rust-tools.nvim",
			ft = { "rust" },
			config = function()
				require("tristan957.rust-tools")
			end,
		})

		use({
			"ThePrimeagen/git-worktree.nvim",
			config = function()
				require("tristan957.git-worktree")
			end,
		})

		use({
			"ThePrimeagen/refactoring.nvim",
			requires = {
				{ "nvim-lua/plenary.nvim" },
				{ "nvim-treesitter/nvim-treesitter" },
			},
			config = function()
				require("tristan957.refactoring")
			end,
		})

	use({
		"nvim-treesitter/nvim-treesitter-textobjects",
		requires = { { "nvim-treesitter/nvim-treesitter" } },
	})
		use({ "tmux-plugins/vim-tmux", ft = "tmux" })

	use({
		"ray-x/go.nvim",
		ft = { "go", "gomod" },
		config = function()
			require("tristan957.go")
		end,
	})
		use({ "tpope/vim-fugitive" })

	use({
		"rcarriga/nvim-dap-ui",
		requires = { { "mfussenegger/nvim-dap" } },
		config = function()
			require("tristan957.dap-ui")
		end,
	})
		use({ "tpope/vim-obsession" })

	use({ "rust-lang/rust.vim", ft = { "rust" } })
		use({ "tpope/vim-surround" })

	use({
		"simrat39/rust-tools.nvim",
		ft = { "rust" },
		config = function()
			require("tristan957.rust-tools")
		end,
	})
		use({ "ziglang/zig.vim", ft = { "zig" } })

	use({
		"ThePrimeagen/git-worktree.nvim",
		config = function()
			require("tristan957.git-worktree")
		end,
	})
		use({ "wbthomason/packer.nvim" })

	use({
		"ThePrimeagen/refactoring.nvim",
		requires = {
			{ "nvim-lua/plenary.nvim" },
			{ "nvim-treesitter/nvim-treesitter" },
		-- Automatically set up your configuration after cloning packer.nvim
		-- Put this at the end after all plugins
		if PACKER_BOOTSTRAP then
			require("packer").sync()
		end
	end,
	config = {
		display = {
			open_fn = function()
				return require("packer.util").float({ border = "single" })
			end,
		},
		config = function()
			require("tristan957.refactoring")
		end,
	})

	use({ "tmux-plugins/vim-tmux", ft = "tmux" })

	use({ "tpope/vim-fugitive" })

	use({ "tpope/vim-obsession" })

	use({ "tpope/vim-surround" })

	use({ "ziglang/zig.vim", ft = { "zig" } })

	use({ "wbthomason/packer.nvim" })

	-- Automatically set up your configuration after cloning packer.nvim
	-- Put this at the end after all plugins
	if PACKER_BOOTSTRAP then
		require("packer").sync()
	end
end)
	},
})

M nvim/.config/nvim/lua/tristan957/trouble.lua => nvim/.config/nvim/lua/tristan957/trouble.lua +7 -0
@@ 13,3 13,10 @@ require("trouble").setup({
	},
	use_lsp_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
})

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

M vim/.vimrc => vim/.vimrc +1 -1
@@ 127,7 127,7 @@ set termguicolors
set textwidth=100 " maximum width of text that is being inserted
let &undodir=cache_dir . '/undo'
set undofile
set updatetime=50
set updatetime=250
set wildmenu " visual autocomplete for command menu

let g:netrw_banner=0