diff --git a/nvim/nvim/after/plugin/lsp.lua b/nvim/nvim/after/plugin/lsp.lua index 47165c3..be3bc3a 100644 --- a/nvim/nvim/after/plugin/lsp.lua +++ b/nvim/nvim/after/plugin/lsp.lua @@ -1,7 +1,12 @@ local lsp = require("lsp-zero") -lsp.on_attach(function(_client, _bufnr) - lsp.default_keymaps({bufnr = _bufnr}) +lsp.on_attach(function(_client, bufnr) + lsp.default_keymaps({bufnr = bufnr}) + + vim.keymap.set("n", "cs", vim.lsp.buf.signature_help, {buffer = bufnr}) + vim.keymap.set("n", "cr", vim.lsp.buf.rename, {buffer = bufnr}) + vim.keymap.set("n", "ca", vim.lsp.buf.code_action, {buffer = bufnr}) + vim.keymap.set("n", "cf", vim.lsp.buf.format, {buffer = bufnr}) end) require("mason").setup({}) diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index 2e67f33..803076e 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -105,4 +105,5 @@ zstyle ':completion:*:manuals' separate-sections true zstyle ':completion:*:manuals.*' insert-sections true zstyle ':completion:*:man:*' menu yes select -alias vim="nvim" +alias vim='nvim' +alias devspace='podman run -it -v "$(pwd):/workspace" -e PUID="$(id -u)" -e PGID="$(id -g)" --uidmap="$(id -u)":0:1 --uidmap=0:1:"$(id -u)" --gidmap="$(id -g)":0:1 --gidmap=0:1:"$(id -g)"'