From afafa3c335b98b8beead13eb1b61fa469fd4aff2 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Mon, 6 Mar 2023 21:23:10 +0100 Subject: Various neovim, tmux, alacritty, and foot config improvements --- .config/alacritty/alacritty.yml | 6 ++++-- .config/foot/foot.ini | 2 +- .config/gpg.conf | 1 + .config/nvim/lua/keybinds.lua | 3 +-- .config/nvim/lua/lsp.lua | 10 +++++----- .config/nvim/lua/plugins.lua | 1 - .config/tmux/tmux.conf | 1 + 7 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 .config/gpg.conf diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index b73e068..78c0e01 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -435,8 +435,10 @@ live_config_reload: true # - (Windows) powershell shell: program: tmux -# args: -# - --login + args: + - "new" + - "-t" + - "0" # Startup directory # diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 8fda5fb..89fe9a8 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -3,7 +3,7 @@ # shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) # term=foot (or xterm-256color if built with -Dterminfo=disabled) # login-shell=no -shell=tmux -2 +shell=tmux new -t 0 # app-id=foot # title=foot # locked-title=no diff --git a/.config/gpg.conf b/.config/gpg.conf new file mode 100644 index 0000000..1411414 --- /dev/null +++ b/.config/gpg.conf @@ -0,0 +1 @@ +keyserver hkps://keys.openpgp.org diff --git a/.config/nvim/lua/keybinds.lua b/.config/nvim/lua/keybinds.lua index ac3519d..372335a 100644 --- a/.config/nvim/lua/keybinds.lua +++ b/.config/nvim/lua/keybinds.lua @@ -1,7 +1,6 @@ local telescope = require("telescope.builtin") local wk = require("which-key") local ufo = require("ufo") -local renamer = require("renamer") local nt_api = require("nvim-tree.api") vim.g.mapleader = " " @@ -35,7 +34,7 @@ vim.keymap.set("n", "q", ":q") vim.keymap.set("n", "[", ufo.openAllFolds) vim.keymap.set("n", "]", ufo.closeAllFolds) -vim.keymap.set("n", "r", renamer.rename) +vim.keymap.set("n", "r", vim.lsp.buf.rename) vim.opt.whichwrap = "<,>,h,l,[,]" diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index 0eba3fe..6fe008e 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -85,14 +85,12 @@ cmp.setup({ }; }) -local lsp_inlayhints = require("lsp-inlayhints") - local on_attach = function(client, bufnr) vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc") local lsp_signature = require("lsp_signature") lsp_signature.on_attach({ bind = true }, bufnr) - lsp_inlayhints.setup() - lsp_inlayhints.on_attach(client, bufnr, false) + require("lsp-inlayhints").setup() + require("lsp-inlayhints").on_attach(client, bufnr, false) end vim.api.nvim_create_augroup("LspAttach_inlayhints", {}) @@ -103,7 +101,7 @@ vim.api.nvim_create_autocmd("LspAttach", { local bufnr = args.buf local client = vim.lsp.get_client_by_id(args.data.client_id) - lsp_inlayhints.on_attach(client, bufnr, false) + require("lsp-inlayhints").on_attach(client, bufnr, false) end; }) @@ -283,6 +281,8 @@ require("lspconfig").lua_ls.setup({ }; }) +require('lspconfig').jedi_language_server.setup({}) + local null_ls = require("null-ls") null_ls.setup({ diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index fcd06ee..714a8f5 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -11,7 +11,6 @@ local PKGS = { { url = "https://github.com/kevinhwang91/nvim-ufo.git" }; { url = "https://github.com/kevinhwang91/promise-async.git" }; { url = "https://github.com/iamcco/markdown-preview.nvim.git" }; - { url = "https://github.com/filipdutescu/renamer.nvim.git" }; { url = "https://github.com/folke/which-key.nvim.git" }; { url = "https://github.com/tpope/vim-abolish.git" }; { url = "https://github.com/mg979/vim-visual-multi.git" }; diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e55a527..7f5528e 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -16,6 +16,7 @@ set -g status-right "#{user}@#{host} | #(date -d now '+%a/%b/%Y %R') " set -g set-titles on set -g set-titles-string "#{window_name} #{user}@#{host_short}" +set -g base-index 1 bind-key b set-option status set -g lock-command vlock -- cgit v1.2.3 span title='2023-04-05 16:42:00 +0000'>2023-04-05Better hyprland configLuca Matei Pintilie3-10/+42 2023-04-02Remove beacon config and add mini.commentLuca Matei Pintilie1-13/+34