You've already forked dotfiles
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:
25
nvim/after/lsp/ansiblels.lua
Normal file
25
nvim/after/lsp/ansiblels.lua
Normal 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' },
|
||||
}
|
||||
20
nvim/after/lsp/arduino_language_server.lua
Normal file
20
nvim/after/lsp/arduino_language_server.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
return {
|
||||
cmd = { 'marksman' },
|
||||
filetypes = { 'md', 'markdown', 'telekasten' },
|
||||
cmd = { 'marksman', 'server' },
|
||||
filetypes = { 'markdown', 'markdown.mdx' },
|
||||
root_markers = { '.marksman.toml', '.git' },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user