From 25efc207b5fd642f2dfec83376c5859bc23c8757 Mon Sep 17 00:00:00 2001 From: Gaiety Date: Sat, 4 Apr 2026 12:43:06 -0600 Subject: [PATCH] lsp maybe partially working, ts and lua --- mise-tasks/lsp-typescript | 4 ++++ mise.toml | 4 +++- nvim/init.lua | 2 ++ nvim/lua/lsp.lua | 15 +++++++++++++++ nvim/nvim-pack-lock.json | 4 ++++ 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100755 mise-tasks/lsp-typescript create mode 100644 nvim/lua/lsp.lua diff --git a/mise-tasks/lsp-typescript b/mise-tasks/lsp-typescript new file mode 100755 index 0000000..6996248 --- /dev/null +++ b/mise-tasks/lsp-typescript @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +#MISE description="LSP System installations needed for Typescript (& therefore, JS)" +echo typescript language server and typescript cli +npm install -g typescript-language-server typescript diff --git a/mise.toml b/mise.toml index b102f10..d962d4e 100644 --- a/mise.toml +++ b/mise.toml @@ -1,7 +1,9 @@ [tools] +"aqua:LuaLS/lua-language-server" = "latest" bat = "latest" fzf = "latest" neovim = "latest" -tree-sitter = "latest" +node = "latest" +npm = "latest" zellij = "latest" zoxide = "latest" diff --git a/nvim/init.lua b/nvim/init.lua index 10a94e3..b5af7a9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -4,3 +4,5 @@ require('highlighting') require('theme') require('statusline') + +require('lsp') diff --git a/nvim/lua/lsp.lua b/nvim/lua/lsp.lua new file mode 100644 index 0000000..5095427 --- /dev/null +++ b/nvim/lua/lsp.lua @@ -0,0 +1,15 @@ +vim.pack.add({ + 'https://github.com/neovim/nvim-lspconfig' +}) + +-- .ts .js +vim.lsp.enable('typescript') + + +-- .lua +vim.lsp.config('luals', { + cmd = {'lua-language-server'}, + filetypes = {'lua'}, + root_markers = {'.luarc.json', '.luarc.jsonc'}, +}) +vim.lsp.enable('luals') diff --git a/nvim/nvim-pack-lock.json b/nvim/nvim-pack-lock.json index 95629a4..4502f1f 100644 --- a/nvim/nvim-pack-lock.json +++ b/nvim/nvim-pack-lock.json @@ -4,6 +4,10 @@ "rev": "cf2a288696b03d0934da713d66c6d71557b5c997", "src": "https://github.com/rose-pine/neovim" }, + "nvim-lspconfig": { + "rev": "9ccd58a7949091c0cc2777d4e92a45a209c808c1", + "src": "https://github.com/neovim/nvim-lspconfig" + }, "roseline": { "rev": "f8c9088e72a238dc27039472116fc642e7f4dee9", "src": "https://github.com/maxmx03/roseline"