From 4c9aa0fb0441d5e44b0904182f1b40952c98c59c Mon Sep 17 00:00:00 2001 From: name Date: Thu, 11 Dec 2025 21:13:29 +0000 Subject: [PATCH] add language servers --- init.lua | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index b98ffc61..832d175c 100644 --- a/init.lua +++ b/init.lua @@ -83,6 +83,9 @@ I hope you enjoy your Neovim journey, P.S. You can delete this when you're done too. It's your config now! :) --]] +-- +--vim.lsp.enable 'julials' +--vim.lsp.config 'julials' -- Set as the leader key -- See `:help mapleader` @@ -102,10 +105,10 @@ vim.g.have_nerd_font = false vim.o.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.o.relativenumber = true +vim.o.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! -vim.o.mouse = 'a' +--vim.o.mouse = 'a' -- Don't show the mode, since it's already in the status line vim.o.showmode = false @@ -671,19 +674,30 @@ require('lazy').setup({ -- - settings (table): Override the default settings passed when initializing the server. -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, + clangd = {}, + gopls = {}, + pyright = {}, + verible = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: -- https://github.com/pmizio/typescript-tools.nvim - -- + --julials = { + -- cmd = { + -- 'julia', + -- '--startup-file=no', + --'--history-file=no', + --'-e', + ---[[ + -- using LanguageServer, SymbolServer; + -- runserver() + -- ]], + --}, + -- filetypes = { 'julia' }, + --}, -- But for many setups, the LSP (`ts_ls`) will work just fine -- ts_ls = {}, - -- - lua_ls = { -- cmd = { ... }, -- filetypes = { ... }, @@ -731,6 +745,11 @@ require('lazy').setup({ server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) require('lspconfig')[server_name].setup(server) end, + ['verible'] = function() + require('lspconfig').verible.setup { + filetypes = { 'verilog', 'systemverilog', 'v', 'sv' }, + } + end, }, } end,