diff --git a/lua/config.lua b/lua/config.lua index c621b84..cb44f62 100644 --- a/lua/config.lua +++ b/lua/config.lua @@ -90,3 +90,9 @@ vim.filetype.add({ spade = "spade", }, }) + +vim.filetype.add({ + extension = { + wesl = "wesl", + }, +}) diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index 7f17d17..b813ef3 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -1,10 +1,19 @@ vim.pack.add({ "https://github.com/rktjmp/lush.nvim" }) vim.pack.add({ "https://github.com/savq/melange-nvim" }) vim.pack.add({ "https://github.com/rose-pine/neovim" }) -require("rose-pine").setup() +vim.pack.add({ "https://github.com/xero/miasma.nvim" }) +vim.pack.add({ "https://github.com/skylarmb/torchlight.nvim" }) +-- require("rose-pine").setup() -- vim.g.melange_enable_font_variants = 0 -- disable font variants -- require("lush") -- make sure Lush is installed -- require("melange.build").build() -- Compile to vimscript -- vim.cmd.colorscheme("rose-pine") -vim.cmd.colorscheme("melange") +-- vim.cmd.colorscheme("melange") +-- vim.cmd.colorscheme("miasma") +-- vim.cmd.colorscheme("miasma") +require("torchlight").setup({ + contrast = "stark", -- available: soft, medium, hard, stark + palette = "torchlight", -- available: dusk, torchlight, dawn +}) +vim.cmd.colorscheme("torchlight") diff --git a/lua/plugins/flash.lua b/lua/plugins/flash.lua index aaffd8d..f7acc0c 100644 --- a/lua/plugins/flash.lua +++ b/lua/plugins/flash.lua @@ -5,7 +5,7 @@ require("flash").setup({ { search = { - enabled = true + enabled = false } } }) @@ -16,5 +16,3 @@ vim.keymap.set({ "n", "x", "o" }, "S", function() Flash.treesitter() end) vim.keymap.set({ "o" }, "r", function() Flash.remote() end) vim.keymap.set({ "o", "x" }, "R", function() Flash.treesitter_search() end) vim.keymap.set({ "c" }, "", function() Flash.toggle() end) - - diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index b49e88b..c909d0d 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -12,3 +12,4 @@ require("plugins.git") require("plugins.conform") require("plugins.neogen") require("plugins.metals") +require("plugins.slang") diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index eff01b6..649abac 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -7,7 +7,10 @@ vim.lsp.enable({ 'lua_ls' }) vim.lsp.enable({ 'clangd' }) vim.lsp.enable({ 'spade_ls' }) vim.lsp.enable({ 'pyright' }) --- vim.lsp.enable({ 'metals' }) +-- vim.lsp.enable({ 'harper_ls' }) +vim.lsp.enable({ 'tinymist' }) +vim.lsp.config('wgsl_analyzer', { filetypes = { "wgsl", "wesl" } }) +vim.lsp.enable('wgsl_analyzer') vim.lsp.config("rust_analyzer", { settings = { diff --git a/lua/plugins/slang.lua b/lua/plugins/slang.lua new file mode 100644 index 0000000..a3dbf4c --- /dev/null +++ b/lua/plugins/slang.lua @@ -0,0 +1,7 @@ +vim.pack.add({ "https://github.com/pixelsandpointers/slang.nvim" }) + +require('slang').setup({ + -- slangd_path = '/path/to/vulkan-sdk/x86_64', + auto_format = true, + inlay_hints = true, +}) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index c6c92e7..4799a3c 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -63,7 +63,9 @@ local languages = "yaml", "wgsl", "spade", - "scala" + "scala", + "typst", + "slang" } ts.install(languages):wait(300000) diff --git a/nvim-pack-lock.json b/nvim-pack-lock.json index a254b45..7c3c6c8 100644 --- a/nvim-pack-lock.json +++ b/nvim-pack-lock.json @@ -44,6 +44,10 @@ "rev": "ce42f6b629beeaa00591ba73a77d3eeac4cf28ce", "src": "https://github.com/savq/melange-nvim" }, + "miasma.nvim": { + "rev": "627f2e1cac91de0d1d4dd7472b506a30f41b2b7d", + "src": "https://github.com/xero/miasma.nvim" + }, "mini.comment": { "rev": "fc87ba6554f182161d9a4bab5017c575571f000f", "src": "https://github.com/nvim-mini/mini.comment" @@ -89,6 +93,10 @@ "rev": "74b06c6c75e4eeb3108ec01852001636d85a932b", "src": "https://github.com/nvim-lua/plenary.nvim" }, + "slang.nvim": { + "rev": "431b0df66bc7b6630a650f3a8d06ecc54e53ac13", + "src": "https://github.com/pixelsandpointers/slang.nvim" + }, "telescope-fzf-native.nvim": { "rev": "b25b749b9db64d375d782094e2b9dce53ad53a40", "src": "https://github.com/nvim-telescope/telescope-fzf-native.nvim" @@ -96,6 +104,10 @@ "telescope.nvim": { "rev": "9377230aa5305d9e9aca4ed8dadf1070fb4aa9fc", "src": "https://github.com/nvim-lua/telescope.nvim" + }, + "torchlight.nvim": { + "rev": "1bd03f30601c37c425538251c193e24cc43f8c3d", + "src": "https://github.com/skylarmb/torchlight.nvim" } } }