From 6756e27057d08e6d162e67bf3b6aeedf3e05f623 Mon Sep 17 00:00:00 2001 From: fugotakefusa Date: Thu, 30 Oct 2025 22:25:30 +1300 Subject: [PATCH] this is better --- lua/options.lua | 2 ++ lua/plugins.lua | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/lua/options.lua b/lua/options.lua index 06264e27..7457f2db 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -45,6 +45,8 @@ vim.opt.confirm = true -- Configure diagnostics vim.diagnostic.config({ virtual_text = true, + signs = true, + underline = true, update_in_insert = true, }) diff --git a/lua/plugins.lua b/lua/plugins.lua index 96af57b7..0f90405d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -43,20 +43,20 @@ require('lazy').setup({ }, } 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", - }, - config = function() - require("mason").setup() - require("mason-lspconfig").setup() - end - } + }, + { + "neovim/nvim-lspconfig", + config = function() + -- Configure the Pyright language server for Python + vim.lsp.config('pyright', { + cmd = { "pyright-langserver", "--stdio" }, + filetypes = { "python" }, + }) + + -- Enable the LSP server for Python files + vim.lsp.enable('pyright') + end, + } }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the