diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-03-06 20:23:10 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-03-06 20:23:10 +0000 |
commit | afafa3c335b98b8beead13eb1b61fa469fd4aff2 (patch) | |
tree | deea0108fd2143b42099f6bc245b46c6f3b84183 | |
parent | f24793639bd276cb2278b10e163dace8eb2d0c90 (diff) | |
download | dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.tar dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.tar.gz dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.tar.bz2 dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.tar.lz dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.tar.xz dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.tar.zst dotfiles-afafa3c335b98b8beead13eb1b61fa469fd4aff2.zip |
Various neovim, tmux, alacritty, and foot config improvements
-rw-r--r-- | .config/alacritty/alacritty.yml | 6 | ||||
-rw-r--r-- | .config/foot/foot.ini | 2 | ||||
-rw-r--r-- | .config/gpg.conf | 1 | ||||
-rw-r--r-- | .config/nvim/lua/keybinds.lua | 3 | ||||
-rw-r--r-- | .config/nvim/lua/lsp.lua | 10 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 1 | ||||
-rw-r--r-- | .config/tmux/tmux.conf | 1 |
7 files changed, 13 insertions, 11 deletions
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", "<Leader>q", ":q<CR>") vim.keymap.set("n", "<Leader>[", ufo.openAllFolds) vim.keymap.set("n", "<Leader>]", ufo.closeAllFolds) -vim.keymap.set("n", "<Leader>r", renamer.rename) +vim.keymap.set("n", "<Leader>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 |