user/neovim: add astro and tailwind
This commit is contained in:
parent
1cfcd112e8
commit
633d781a25
2 changed files with 4 additions and 1 deletions
|
|
@ -20,6 +20,8 @@ in {
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
|
nodePackages."@astrojs/language-server"
|
||||||
|
nodePackages."@tailwindcss/language-server"
|
||||||
nodePackages.diagnostic-languageserver
|
nodePackages.diagnostic-languageserver
|
||||||
nodePackages.eslint_d
|
nodePackages.eslint_d
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
|
|
@ -52,6 +54,7 @@ in {
|
||||||
|
|
||||||
#(pkgs.me.nvim-treesitter-nightly.withPlugins (p: with p; [
|
#(pkgs.me.nvim-treesitter-nightly.withPlugins (p: with p; [
|
||||||
(nvim-treesitter.withPlugins (p: with p; [
|
(nvim-treesitter.withPlugins (p: with p; [
|
||||||
|
tree-sitter-astro
|
||||||
tree-sitter-bash
|
tree-sitter-bash
|
||||||
tree-sitter-c
|
tree-sitter-c
|
||||||
tree-sitter-c-sharp
|
tree-sitter-c-sharp
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||||
|
|
||||||
local servers = { 'cssls', 'html', 'nil_ls', 'texlab', 'ts_ls', 'yamlls' }
|
local servers = { 'astro', 'cssls', 'html', 'nil_ls', 'tailwindcss', 'texlab', 'ts_ls', 'yamlls' }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue