Add hound.vim with remap

This commit is contained in:
Dave Gallant
2021-09-06 23:31:32 -04:00
parent 1a07d25d8f
commit dfbeed05f6
2 changed files with 19 additions and 5 deletions

View File

@@ -11,6 +11,15 @@ let
sha256 = "sha256-FDeyGH5OPAYV7zePCfDujsj+nGd5AFnqySPStJYEY2E=";
};
};
hound-vim = pkgs.vimUtils.buildVimPlugin {
name = "hound-vim";
src = pkgs.fetchFromGitHub {
owner = "jfo";
repo = "hound.vim";
rev = "88a932104b47e0b5461c107837b3a9dd7cede529";
sha256 = "sha256-E97h75Zyc01klRi+245l/Y8HSvnnyvCjDrAB/BnK3G8=";
};
};
inherit (pkgs) stdenv;
in
{
@@ -295,13 +304,14 @@ in
extraConfig = "lua require('init')";
plugins = with pkgs.vimPlugins; [
bufferline-nvim
completion-nvim
git-blame-nvim
gitlinker-nvim
glow-nvim
gruvbox-nvim
hound-vim
lualine-nvim
bufferline-nvim
nvim-lspconfig
nvim-tree-lua
nvim-treesitter
@@ -328,6 +338,7 @@ in
vim-sneak
vim-surround
vim-terraform
webapi-vim
];
};

View File

@@ -289,6 +289,13 @@ 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.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}
@@ -310,10 +317,6 @@ vim.cmd[[autocmd BufEnter * lua require'completion'.on_attach()]]
vim.cmd[[imap <tab> <Plug>(completion_smart_tab)]]
vim.cmd[[imap <s-tab> <Plug>(completion_smart_s_tab)]]
-- Use <Tab> and <S-Tab> to navigate through popup menu
-- vim.cmd[[inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"]]
-- vim.cmd[[inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"]]
-- Remember line number
vim.cmd[[au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif]]