feat: luau lsp

This commit is contained in:
2025-02-05 16:45:44 +00:00
parent cf5e3e3ae7
commit 2e935d6328
4 changed files with 37 additions and 28 deletions

View File

@@ -1,12 +1,12 @@
{ {
"conform.nvim": { "branch": "master", "commit": "363243c03102a531a8203311d4f2ae704c620d9b" }, "conform.nvim": { "branch": "master", "commit": "363243c03102a531a8203311d4f2ae704c620d9b" },
"fidget.nvim": { "branch": "main", "commit": "a0abbf18084b77d28bc70e24752e4f4fd54aea17" }, "fidget.nvim": { "branch": "main", "commit": "3fa10de61546fd0a98faac3084a6c0db612adaf8" },
"lazy.nvim": { "branch": "main", "commit": "7527af40ddd4a93a02911be570b32609b9d4ea53" }, "lazy.nvim": { "branch": "main", "commit": "7527af40ddd4a93a02911be570b32609b9d4ea53" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "f75e877f5266e87523eb5a18fcde2081820d087b" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "f75e877f5266e87523eb5a18fcde2081820d087b" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"mini.nvim": { "branch": "main", "commit": "87fc38a8a2b8d498cecb021d057a38ea2e9f5a79" }, "mini.nvim": { "branch": "main", "commit": "87fc38a8a2b8d498cecb021d057a38ea2e9f5a79" },
"nvim-lspconfig": { "branch": "master", "commit": "66bc018936c6ff76beb75f89d986af6442db4001" }, "nvim-lspconfig": { "branch": "master", "commit": "66bc018936c6ff76beb75f89d986af6442db4001" },
"nvim-treesitter": { "branch": "master", "commit": "53a6b3993f5803378d4d031bf114c0b125a52ba8" }, "nvim-treesitter": { "branch": "master", "commit": "cced713b4993ddbfba8f82e9e60fcab7cbee8101" },
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, "plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
"rose-pine": { "branch": "main", "commit": "00ec4cec924b624920baac9d42eac02e1efcae76" }, "rose-pine": { "branch": "main", "commit": "00ec4cec924b624920baac9d42eac02e1efcae76" },
"telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" }, "telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" },

View File

@@ -1,27 +1,35 @@
return { return {
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
dependencies = { dependencies = {
"williamboman/mason.nvim", "williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"j-hui/fidget.nvim", "j-hui/fidget.nvim",
}, },
config = function() config = function()
require("mason").setup() require("mason").setup()
require("fidget").setup() require("fidget").setup()
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = { ensure_installed = {
"ts_ls", "ts_ls",
"lua_ls", "lua_ls",
"rust_analyzer", "luau_lsp",
"nil_ls", "rust_analyzer",
}, "nil_ls",
handlers = { },
function(server) handlers = {
require("lspconfig")[server].setup({}) function(server)
end, require("lspconfig")[server].setup({})
}, end,
}) luau_lsp = function()
end, require("lspconfig").luau_lsp.setup({
}, fflags = {
enable_new_solver = true,
},
})
end,
},
})
end,
},
} }

View File

@@ -23,6 +23,7 @@
asciiquarium asciiquarium
wireguard-tools wireguard-tools
fzf fzf
lune
]; ];
programs.nix-ld.enable = lib.mkDefault true; programs.nix-ld.enable = lib.mkDefault true;
programs.zsh.enable = lib.mkDefault true; programs.zsh.enable = lib.mkDefault true;

View File

@@ -6,7 +6,7 @@
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
history.size = 1000; history.size = 1000;
envExtra = '' envExtra = ''
. "$HOME/.rokit/env" export PATH="$PATH:$HOME/.pesde/bin"
''; '';
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;