this is better
This commit is contained in:
parent
fcc6e18637
commit
6756e27057
|
|
@ -45,6 +45,8 @@ vim.opt.confirm = true
|
||||||
-- Configure diagnostics
|
-- Configure diagnostics
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = true,
|
virtual_text = true,
|
||||||
|
signs = true,
|
||||||
|
underline = true,
|
||||||
update_in_insert = true,
|
update_in_insert = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,17 +45,17 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
-- handle LSP server installation and management
|
|
||||||
-- let's be lazy for now.
|
|
||||||
"mason-org/mason.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"mason-org/mason-lspconfig.nvim",
|
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
},
|
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
-- Configure the Pyright language server for Python
|
||||||
require("mason-lspconfig").setup()
|
vim.lsp.config('pyright', {
|
||||||
end
|
cmd = { "pyright-langserver", "--stdio" },
|
||||||
|
filetypes = { "python" },
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Enable the LSP server for Python files
|
||||||
|
vim.lsp.enable('pyright')
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
ui = {
|
ui = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue