From c0902b570e84ad05d6e2ccba55b91ee205940dfb Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sun, 19 Feb 2023 14:20:53 +0200 Subject: [PATCH] added code action bingd ) --- dot_zshrc | 3 ++- private_dot_config/nvim/lua/user/init.lua | 20 ++++++-------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/dot_zshrc b/dot_zshrc index cd2a122..3937196 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -203,4 +203,5 @@ fi export PYENV_ROOT="$HOME/.pyenv" command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" - +#anaconda slows shit down D:<<<< +alias anaconda='source ~/.zsh_anaconda' diff --git a/private_dot_config/nvim/lua/user/init.lua b/private_dot_config/nvim/lua/user/init.lua index de64594..1d5b68a 100644 --- a/private_dot_config/nvim/lua/user/init.lua +++ b/private_dot_config/nvim/lua/user/init.lua @@ -210,6 +210,9 @@ local config = { -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command ["cp"] = { "Copilot panel", desc = "Copilot panel"}, ["Lll"] = { "VimtexCompile", desc = "Live compiling"}, + ["cd"] = {function() require("duck").hatch("🦀") end, desc = "duck hatch"}, + ["ck"] = {function() require("duck").cook() end, desc = "duck cook"}, + ["ca"] = {function() vim.lsp.buf.code_action() end, desc = "Code action"}, }, t = { -- setting a mapping to false will disable it @@ -232,20 +235,9 @@ local config = { ["tpope/vim-fugitive"] = {}, ["lervag/vimtex"] = {}, ["akinsho/flutter-tools.nvim"] = { - require = "nvim-lua/plenary.nvim", + requires = "nvim-lua/plenary.nvim", }, - ["chipsenkbeil/distant.nvim"] = { - config = function() - require('distant').setup { - -- Applies Chip's personal settings to every machine you connect to - -- - -- 1. Ensures that distant servers terminate with no connections - -- 2. Provides navigation bindings for remote directories - -- 3. Provides keybinding to jump into a remote file's parent directory - ['*'] = require('distant.settings').chip_default() - } - end - } + ["tamton-aquib/duck.nvim"] = {}, -- You can also add new plugins here as well: -- Add plugins, the packer syntax without the "use" @@ -362,7 +354,7 @@ local config = { -- third key is the key to bring up next level and its displayed -- group name in which-key top level menu ["b"] = { name = "Buffer" }, - ["c"] = { name = "Crime"}, + ["c"] = { name = "Code Stuff"}, ["L"] = { name = "LaTEX"} }, },