Selaa lähdekoodia

nixpkgs/neovim: enable dprint lsp

Thomas Dy 10 kuukautta sitten
vanhempi
commit
4c1bb968f7
2 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  1. 6 0
      .config/nixpkgs/neovim/lsp.lua
  2. 2 2
      .config/nixpkgs/neovim/plugins/sources.json

+ 6 - 0
.config/nixpkgs/neovim/lsp.lua

@@ -37,6 +37,12 @@ if vim.fn.executable("node_modules/.bin/eslint") == 1 then
   })
 end
 
+if vim.fn.executable("dprint") == 1 then
+  local version = vim.version.parse(vim.fn.system("dprint --version"))
+  if vim.version.cmp(version, {0,45,0}) >= 0 then
+    nvim_lsp.dprint.setup({})
+  end
+end
 
 if vim.fn.executable("deno") == 1 then
   nvim_lsp.denols.setup({

+ 2 - 2
.config/nixpkgs/neovim/plugins/sources.json

@@ -44,8 +44,8 @@
     "sha256": "0n1pdil0di93sfmlxnw80xvwxgz36m3hllhzg16bmlcjwgagwclp"
   },
   "neovim/nvim-lspconfig": {
-    "rev": "9099871a7c7e1c16122e00d70208a2cd02078d80",
-    "sha256": "0w9f87zniyzz3hk3jqavj02d4lafp8aamfgv5j7nb5aa0c1hjd61"
+    "rev": "1759ea68fbbb1303192020d3e59936189359e0ed",
+    "sha256": "025kamvrx8j362kszkqa028xm4d2gjxsb45rwzcp0jvx2ay74zxj"
   },
   "nvim-treesitter/nvim-treesitter-textobjects": {
     "rev": "ec1c5bdb3d87ac971749fa6c7dbc2b14884f1f6a",