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

View File

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

View File

@@ -255,6 +255,16 @@ require("twilight").setup {
exclude = {}, -- exclude these filetypes 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-go
vim.g.go_auto_sameids = 0 vim.g.go_auto_sameids = 0
vim.g.go_fmt_command = "goimports" vim.g.go_fmt_command = "goimports"
@@ -302,14 +312,6 @@ vim.g['prettier#autoformat'] = 1
-- git-blame -- git-blame
vim.g.gitblame_enabled = 0 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 -- telescope
vim.api.nvim_set_keymap("n", "<leader>ff", "<cmd>Telescope find_files<cr>", vim.api.nvim_set_keymap("n", "<leader>ff", "<cmd>Telescope find_files<cr>",
{silent = true, noremap = true} {silent = true, noremap = true}