Add hound.nvim

This commit is contained in:
Dave Gallant
2021-09-20 09:43:50 -04:00
parent d0012b087c
commit 2329a25c49
3 changed files with 18 additions and 15 deletions

View File

@@ -72,7 +72,6 @@ in
# password managers
_1password
bitwarden
bitwarden-cli
gopass
@@ -197,6 +196,7 @@ in
vlc
# Unsupported on darwin but likely should be:
aws-sam-cli
bitwarden
brave
datasette
deluge

View File

@@ -11,13 +11,14 @@ let
sha256 = "sha256-FDeyGH5OPAYV7zePCfDujsj+nGd5AFnqySPStJYEY2E=";
};
};
hound-vim = pkgs.vimUtils.buildVimPlugin {
name = "hound-vim";
hound-nvim = pkgs.vimUtils.buildVimPlugin {
name = "hound-nvim";
nativeBuildInputs = with pkgs; [ lua53Packages.luacheck stylua ];
src = pkgs.fetchFromGitHub {
owner = "davegallant";
repo = "hound.vim";
rev = "426a8711b1b5d49f136b8ac21849f34591a960ee";
sha256 = "sha256-Vma/cDPNGoExvUf5sP9sQ3dHWUtHpOmrVJbZbHQpdiI=";
repo = "hound.nvim";
rev = "13dd6061f1614c514feab68200779ae4bd08273d";
sha256 = "sha256-VZLbfEjWOYwQtVT1kOycRZKNmAd/IhiYZnCtm4Y/DWY=";
};
};
inherit (pkgs) stdenv;
@@ -319,7 +320,7 @@ in
gitlinker-nvim
glow-nvim
gruvbox-nvim
hound-vim
hound-nvim
lualine-nvim
nvim-lspconfig
nvim-tree-lua

View File

@@ -255,6 +255,16 @@ require("twilight").setup {
exclude = {}, -- exclude these filetypes
}
-- hound.nvim
require("hound").setup {
hound_base_url = "http://hound", -- Rely on Tailscale's MagicDNS
hound_port = 6080, -- the port hound is running on
split = "split", -- split horizontally
}
vim.api.nvim_set_keymap("n", "<leader>hs", ":Hound",
{silent = true, noremap = true}
)
-- vim-go
vim.g.go_auto_sameids = 0
vim.g.go_fmt_command = "goimports"
@@ -302,14 +312,6 @@ vim.g['prettier#autoformat'] = 1
-- git-blame
vim.g.gitblame_enabled = 0
-- hound.vim
vim.g.hound_base_url = "hound"
vim.g.hound_port = "6080"
vim.g.hound_results_url = 1
vim.api.nvim_set_keymap("n", "<leader>hs", ":Hound",
{silent = true, noremap = true}
)
-- telescope
vim.api.nvim_set_keymap("n", "<leader>ff", "<cmd>Telescope find_files<cr>",
{silent = true, noremap = true}