diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..b091f87 --- /dev/null +++ b/lua/plugins/lsp.lua @@ -0,0 +1,25 @@ +return { + { + "neovim/nvim-lspconfig", + opts = function() + local lspconfig = require('lspconfig') + lspconfig.basedpyright.setup { + settings = { + python = { + analysis = { + inlayHints = { + variableTypes = false, + functionReturnTypes = false, + }, + }, + }, + }, + on_attach = function(client, bufnr) + if client.server_capabilities.inlayHintProvider then + vim.lsp.buf.inlay_hint(bufnr, false) + end + end, + } + end, + }, +} diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua new file mode 100644 index 0000000..795ba2a --- /dev/null +++ b/lua/plugins/which-key.lua @@ -0,0 +1,14 @@ +return { + { + "folke/which-key.nvim", + config = function() + local wk = require("which-key") + + wk.add( + { + { "cL", ":LspRestart", desc = "Restart LSP"}, + } + ) + end, + }, +}