feat: Adding LSP configs for ansiblels, arduino_language_server,

marksman. Adding documentation for LSP configs. Removing Mason config
and the reference to nvim-lspconfig.
This commit is contained in:
2026-08-18 19:55:33 -05:00
parent 76845fee2c
commit 089ba53e8b
7 changed files with 56 additions and 33 deletions

View File

@@ -0,0 +1,25 @@
return {
cmd = { 'ansible-language-server', '--stdio' },
settings = {
ansible = {
python = {
interpreterPath = 'python',
},
ansible = {
path = 'ansible',
},
executionEnvironment = {
enabled = false,
},
validation = {
enabled = true,
lint = {
enabled = true,
path = 'ansible-lint',
},
},
},
},
filetypes = { 'yaml.ansible' },
root_markers = { 'ansible.cfg', '.ansible-lint' },
}

View File

@@ -0,0 +1,20 @@
-- local util = require 'lspconfig.util'
return {
filetypes = { 'arduino' },
root_dir = function(bufnr, on_dir)
local fname = vim.api.nvim_buf_get_name(bufnr)
-- on_dir(util.root_pattern('*.ino')(fname))
end,
cmd = {
'arduino-language-server',
},
capabilities = {
textDocument = {
semanticTokens = vim.NIL,
},
workspace = {
semanticTokens = vim.NIL,
},
},
}

View File

@@ -1,4 +1,5 @@
return {
cmd = { 'marksman' },
filetypes = { 'md', 'markdown', 'telekasten' },
cmd = { 'marksman', 'server' },
filetypes = { 'markdown', 'markdown.mdx' },
root_markers = { '.marksman.toml', '.git' },
}

View File

@@ -25,11 +25,6 @@ vim.diagnostic.config({
}
})
-- Install and enable the language server settings from nvim-lspconfig
-- vim.pack.add({
-- 'https://github.com/neovim/nvim-lspconfig',
-- })
-- Auto set keymaps and other settings on LSP attach
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('my.lsp', {}),
@@ -55,11 +50,15 @@ vim.api.nvim_create_autocmd('LspAttach', {
-- Enable LSP engines
local enabled_lsps = {
'ansiblels',
'arduino_language_server',
'clangd',
'bashls',
'gdscript',
'intelephense',
'jinja_lsp',
'lua_ls',
'marksman',
'pylsp',
'r_language_server',
'rust_analyzer',

View File

@@ -1,23 +0,0 @@
-- vim.pack.add({
-- 'https://github.com/mason-org/mason.nvim',
-- 'https://github.com/mason-org/mason-lspconfig.nvim',
-- })
-- require('mason').setup()
-- require('mason-lspconfig').setup {
-- automatic_enable = true,
-- ensure_installed = {
-- 'ansiblels', -- Ansible
-- 'arduino_language_server', -- Arduino specific C
-- 'bashls', -- Bash
-- 'clangd', -- C/C++
-- 'intelephense', -- PHP
-- 'jinja_lsp', -- Jinja2
-- 'lua_ls', -- Lua
-- 'marksman', -- markdown
-- 'pylsp', -- Python
-- 'rust_analyzer', -- Rust
-- 'shellcheck', -- Bash
-- 'yamlls', -- YAML
-- }
-- }