https://github.com/arakkkkk/textilels
https://github.com/arakkkkk/textilels
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arakkkkk/textilels
- Owner: arakkkkk
- Created: 2024-06-18T16:33:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-20T23:16:17.000Z (over 1 year ago)
- Last Synced: 2025-02-01T17:11:23.324Z (10 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# textilels
An implementation of the Language Server Protocol for textile.
## Instration
```
pip install git+https://github.com/arakkkkk/textilels
```
## Usage
For neovim
```lua
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
pattern = "*.tt",
callback = function()
vim.bo.filetype = "textile"
end,
})
local lspconfig = require("lspconfig")
local configs = require("lspconfig.configs")
if not configs.textilels then
configs.textilels = {
default_config = {
-- cmd = { "nargo", "lsp" },
cmd = { "textilels" },
-- cmd = { "python", "/home/arakkk/Downloads/lsp-textile/pygls/lsp-textile.py" },
root_dir = lspconfig.util.root_pattern("*"),
-- root_dir = vim.fn.getcwd(), -- Use PWD as project root dir.
filetypes = { "textile" },
},
}
end
lspconfig.textilels.setup({})
```