neovim + chore

neovim: lsp: add ansiblels
chore: cleanup shebang (remove 'sh -e' pattern)
This commit is contained in:
Hoang Nguyen 2021-10-18 13:26:55 +07:00
parent 0f2574a887
commit 359cc044b2
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
31 changed files with 62 additions and 30 deletions

View File

@ -186,6 +186,18 @@ function M.lsp_conf()
}
}
-- Ansible
lspconf.ansiblels.setup {
on_attach = on_attach,
capabilities = capabilities,
cmd = {'node', servers_path .. '/ansiblels/out/server/src/server.js', '--stdio'},
filetypes = {'yaml', 'yaml.ansible'},
settings = {
-- python = {interpreterPath = 'python3'},
executionEnvironment = {enabled = false}
}
}
-- Tailwind
-- lspconf.tailwindcss.setup {
-- on_attach = on_attach,

View File

@ -308,7 +308,8 @@ function M.filetype_conf()
complex = {
['*_log'] = 'log',
['G*_LOG'] = 'log',
['.*waybar/config'] = 'jsonc'
['.*waybar/config'] = 'jsonc',
['.*lf/lfrc'] = 'sh'
}
}
}

View File

@ -0,0 +1,19 @@
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/ansiblels"
# Clone / Update
if [ -d "${server_path}" ]; then
cd ${server_path}
git pull
else
git clone https://github.com/ansible/ansible-language-server ${server_path}
cd ${server_path}
fi
# Build
npm ci
npm run compile
cd ${current_path}

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/bashls"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/dockerls"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/efm"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/emmet_ls"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/pyright"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sumneko_lua"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tailwindcss"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tsserver"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vimls"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vscode"

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/yamlls"

View File

@ -1,4 +1,4 @@
#!/bin/python3
#!/usr/bin/env python
from argparse import ArgumentParser
import subprocess
import json

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
if [ -n "$1" ]; then
if [ -f "$1" ]; then

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Use in conjunction with `firefox-sync` script
# (need to open Firefox at least once to generate a profile)

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
echo "Number of make jobs: " | tr -d '\n' # 4
read -r mj

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
git clone https://github.com/13-CF/afetch
cd afetch

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
git clone https://github.com/phenax/bsp-layout.git
cd bsp-layout

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need ncurses-devel

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need mpv-devel, meson, ninja, pkg-config

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Needs musl-fts, ncurses-devel

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Need wlroots-devel to build
git clone https://github.com/ifreund/river.git

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need ncurses-devel
git clone https://github.com/runrin/tt.git

View File

@ -1,2 +1,4 @@
#!/bin/sh
curl -fLo ~/.local/share/fonts/vscode.ttf https://github.com/Canop/broot/blob/master/resources/icons/vscode/vscode.ttf
fc-cache -fv

View File

@ -1,6 +1,4 @@
#!/bin/sh -e
set -e
#!/bin/sh
git clone https://github.com/soreau/wayland-logout.git
cd wayland-logout

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need sqlite-devel
git clone https://git.sr.ht/~fancycade/zkc