1
1
Fork 0

lsp maybe partially working, ts and lua

This commit is contained in:
Gaiety 2026-04-04 12:43:06 -06:00
parent a7ff221df3
commit 25efc207b5
5 changed files with 28 additions and 1 deletions

4
mise-tasks/lsp-typescript Executable file
View file

@ -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

View file

@ -1,7 +1,9 @@
[tools] [tools]
"aqua:LuaLS/lua-language-server" = "latest"
bat = "latest" bat = "latest"
fzf = "latest" fzf = "latest"
neovim = "latest" neovim = "latest"
tree-sitter = "latest" node = "latest"
npm = "latest"
zellij = "latest" zellij = "latest"
zoxide = "latest" zoxide = "latest"

View file

@ -4,3 +4,5 @@ require('highlighting')
require('theme') require('theme')
require('statusline') require('statusline')
require('lsp')

15
nvim/lua/lsp.lua Normal file
View file

@ -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')

View file

@ -4,6 +4,10 @@
"rev": "cf2a288696b03d0934da713d66c6d71557b5c997", "rev": "cf2a288696b03d0934da713d66c6d71557b5c997",
"src": "https://github.com/rose-pine/neovim" "src": "https://github.com/rose-pine/neovim"
}, },
"nvim-lspconfig": {
"rev": "9ccd58a7949091c0cc2777d4e92a45a209c808c1",
"src": "https://github.com/neovim/nvim-lspconfig"
},
"roseline": { "roseline": {
"rev": "f8c9088e72a238dc27039472116fc642e7f4dee9", "rev": "f8c9088e72a238dc27039472116fc642e7f4dee9",
"src": "https://github.com/maxmx03/roseline" "src": "https://github.com/maxmx03/roseline"