aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-03-06 20:23:10 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-03-06 20:23:10 +0000
commitafafa3c335b98b8beead13eb1b61fa469fd4aff2 (patch)
treedeea0108fd2143b42099f6bc245b46c6f3b84183 /.config/nvim
parentf24793639bd276cb2278b10e163dace8eb2d0c90 (diff)
downloaddotfiles-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
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/keybinds.lua3
-rw-r--r--.config/nvim/lua/lsp.lua10
-rw-r--r--.config/nvim/lua/plugins.lua1
3 files changed, 6 insertions, 8 deletions
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" };