🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: colorlsp package

robin c1c23c0f 84d1893c

+45 -3
+15
config/lsp/colorlsp.lua
··· 1 + return { 2 + cmd = { "color-lsp" }, 3 + root_dir = function(bufnr, on_dir) 4 + if vim.bo[bufnr].buftype == "" then 5 + on_dir(vim.fn.getcwd()) 6 + end 7 + end, 8 + capabilities = { 9 + textDocument = { 10 + colorProvider = { 11 + dynamicRegistration = true, 12 + }, 13 + }, 14 + }, 15 + }
+1
config/lua/ivy/config/lsp.lua
··· 5 5 astro = {}, 6 6 bashls = {}, 7 7 clangd = {}, 8 + colorlsp = {}, 8 9 cssls = {}, 9 10 denols = {}, 10 11 dockerls = {},
+1 -3
config/plugin/lsp.lua
··· 50 50 name = "document_color", 51 51 callback = function(client, bufnr) 52 52 if client.server_capabilities.documentColorProvider then 53 - vim.lsp.document_color.enable(true, bufnr, { 54 - style = '', -- virtual 55 - }) 53 + vim.lsp.document_color.enable(true, bufnr) 56 54 end 57 55 end, 58 56 },
+1
default.nix
··· 16 16 packages = lib.makeScope pkgs.newScope (self: { 17 17 ivy = self.callPackage ./pkgs/ivy/package.nix { inherit ivyVersion; }; 18 18 ivyPlugins = self.callPackage ./pkgs/ivy-plugins/package.nix { }; 19 + color-lsp = self.callPackage ./pkgs/color-lsp/package.nix { }; 19 20 inherit (inputs.gift-wrap.legacyPackages.${pkgs.stdenv.hostPlatform.system}) wrapNeovim; 20 21 }); 21 22 in
+25
pkgs/color-lsp/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + }: 6 + rustPlatform.buildRustPackage (finalAttrs: { 7 + pname = "color-lsp"; 8 + version = "v0.1.4"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "huacnlee"; 12 + repo = "color-lsp"; 13 + tag = finalAttrs.version; 14 + hash = "sha256-rjMeypPjqisO8mw8aPbkhB2J8tIjdBUmsYYsBDazO0o="; 15 + }; 16 + 17 + cargoHash = "sha256-fq/OUemYtalkSSxZYun7e1QqbeHU1+uX+AT5EX2Ut/g="; 18 + 19 + meta = { 20 + description = "document color language server"; 21 + homepage = "https://github.com/huacnlee/color-lsp"; 22 + license = lib.licenses.mit; 23 + maintainers = [ { name = "comfysage"; } ]; 24 + }; 25 + })
+2
pkgs/ivy/package.nix
··· 50 50 lazygit, 51 51 prettier, 52 52 nodejs-slim, 53 + color-lsp, 53 54 54 55 # our beatiful wrapper 55 56 wrapNeovim, ··· 260 261 lazygit 261 262 deno 262 263 zls 264 + color-lsp 263 265 ]) 264 266 ]; 265 267 }