diff options
author | Minijackson <minijackson@riseup.net> | 2021-07-09 13:52:57 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-07-09 13:52:57 +0200 |
commit | c9bfed27516aaed202c15772c241c43afdaffa0b (patch) | |
tree | 07d7623513843bdcec4f8658a5be051774187b66 | |
parent | 2418812bd06bf74b915011c84d7d15818695daff (diff) | |
download | nixos-config-reborn-c9bfed27516aaed202c15772c241c43afdaffa0b.tar.gz nixos-config-reborn-c9bfed27516aaed202c15772c241c43afdaffa0b.zip |
vim-dev: add lsp_signature
-rw-r--r-- | dotfiles/vim-dev.lua | 4 | ||||
-rw-r--r-- | usecases/desktop/development.nix | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles/vim-dev.lua b/dotfiles/vim-dev.lua index 5f32244..ae74e91 100644 --- a/dotfiles/vim-dev.lua +++ b/dotfiles/vim-dev.lua | |||
@@ -34,6 +34,10 @@ function on_attach(client, bufnr) | |||
34 | 34 | ||
35 | -- Rust specific | 35 | -- Rust specific |
36 | buf_set_keymap("n", "<leader>sh", "<cmd>RustToggleInlayHints<CR>", opts) | 36 | buf_set_keymap("n", "<leader>sh", "<cmd>RustToggleInlayHints<CR>", opts) |
37 | |||
38 | require("lsp_signature").on_attach({ | ||
39 | hint_prefix = "param: " | ||
40 | }) | ||
37 | end | 41 | end |
38 | 42 | ||
39 | local capabilities = vim.lsp.protocol.make_client_capabilities() | 43 | local capabilities = vim.lsp.protocol.make_client_capabilities() |
diff --git a/usecases/desktop/development.nix b/usecases/desktop/development.nix index 859af10..97d03a8 100644 --- a/usecases/desktop/development.nix +++ b/usecases/desktop/development.nix | |||
@@ -61,6 +61,7 @@ in | |||
61 | 61 | ||
62 | vim = { | 62 | vim = { |
63 | extraPlugins = with vimPlugins; [ | 63 | extraPlugins = with vimPlugins; [ |
64 | lsp_signature-nvim | ||
64 | nvim-lspconfig | 65 | nvim-lspconfig |
65 | rust-tools-nvim | 66 | rust-tools-nvim |
66 | vim-grammarous | 67 | vim-grammarous |