update to lsp configurations
This commit is contained in:
25
lua/plugins/lsp.lua
Normal file
25
lua/plugins/lsp.lua
Normal file
@@ -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,
|
||||
},
|
||||
}
|
||||
14
lua/plugins/which-key.lua
Normal file
14
lua/plugins/which-key.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
local wk = require("which-key")
|
||||
|
||||
wk.add(
|
||||
{
|
||||
{ "<leader><leader>cL", ":LspRestart<CR>", desc = "Restart LSP"},
|
||||
}
|
||||
)
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user