this is better

This commit is contained in:
fugotakefusa 2025-10-30 22:25:30 +13:00
parent fcc6e18637
commit 6756e27057
2 changed files with 16 additions and 14 deletions

View File

@ -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,
}) })

View File

@ -43,20 +43,20 @@ require('lazy').setup({
}, },
} }
end, end,
}, },
{ {
-- handle LSP server installation and management "neovim/nvim-lspconfig",
-- let's be lazy for now. config = function()
"mason-org/mason.nvim", -- Configure the Pyright language server for Python
dependencies = { vim.lsp.config('pyright', {
"mason-org/mason-lspconfig.nvim", cmd = { "pyright-langserver", "--stdio" },
"neovim/nvim-lspconfig", filetypes = { "python" },
}, })
config = function()
require("mason").setup() -- Enable the LSP server for Python files
require("mason-lspconfig").setup() vim.lsp.enable('pyright')
end end,
} }
}, { }, {
ui = { ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the -- If you are using a Nerd Font: set icons to an empty table which will use the