added existing nvim config

This commit is contained in:
gyoder 2025-06-14 11:41:23 +02:00
parent d6d6dab380
commit bdf3cdecda
24 changed files with 996 additions and 0 deletions

View file

@ -0,0 +1,26 @@
return {
cmd = {
'clangd',
-- '--clang-tidy',
-- '--background-index',
-- '--offset-encoding=utf-8',
},
filetypes = { 'arduino' },
root_markers = {
'.clangd',
'.ccls',
'compile_commands.json',
'compile_flags.txt',
'configure.ac' -- AutoTools
},
single_file_support = true,
capabilities = {
textDocument = {
completion = {
editsNearCursor = true,
},
},
offsetEncoding = { 'utf-8', 'utf-16' },
},
}

View file

@ -0,0 +1,28 @@
return {
cmd = {
'clangd',
-- '--clang-tidy',
'--background-index',
'--offset-encoding=utf-8',
'--query-driver=/Users/scie/.platformio/packages/toolchain-xtensa-esp32/**'
},
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda', 'proto', 'arduino' },
root_markers = {
'.clangd',
'.clang-tidy',
'.clang-format',
'compile_commands.json',
'compile_flags.txt',
'configure.ac' -- AutoTools
},
single_file_support = true,
capabilities = {
textDocument = {
completion = {
editsNearCursor = true,
},
},
offsetEncoding = { 'utf-8', 'utf-16' },
},
}

View file

@ -0,0 +1,5 @@
return {
cmd = {'lua-language-server'},
filetypes = {'lua'},
root_markers = {'.luarc.json', '.luarc.jsonc'},
}

View file

@ -0,0 +1,4 @@
return {
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" }
}

View file

@ -0,0 +1,9 @@
return {
cmd = { 'rust-analyzer' },
filetypes = { 'rust', 'rs' },
root_markers = {
'cargo.toml',
'.git'
},
}

View file

@ -0,0 +1,22 @@
---@brief
---
--- https://github.com/kristoff-it/superhtml
---
--- HTML Language Server & Templating Language Library
---
--- This LSP is designed to tightly adhere to the HTML spec as well as enforcing
--- some additional rules that ensure HTML clarity.
---
--- If you want to disable HTML support for another HTML LSP, add the following
--- to your configuration:
---
--- ```lua
--- vim.lsp.config('superhtml', {
--- filetypes = { 'superhtml' }
--- })
--- ```
return {
cmd = { 'superhtml', 'lsp' },
filetypes = { 'superhtml', 'html', "htmldjango" },
root_markers = { '.git' },
}

View file

@ -0,0 +1,62 @@
return {
cmd = { 'tailwindcss-language-server', '--stdio' },
filetypes = {
-- html
'aspnetcorerazor',
'astro',
'astro-markdown',
'blade',
'clojure',
'django-html',
'htmldjango',
'edge',
'eelixir', -- vim ft
'elixir',
'ejs',
'erb',
'eruby', -- vim ft
'gohtml',
'gohtmltmpl',
'haml',
'handlebars',
'hbs',
'html',
'htmlangular',
'html-eex',
'heex',
'jade',
'leaf',
'liquid',
'markdown',
'mdx',
'mustache',
'njk',
'nunjucks',
'php',
'razor',
'slim',
'twig',
-- css
'css',
'less',
'postcss',
'sass',
'scss',
'stylus',
'sugarss',
-- js
'javascript',
'javascriptreact',
'reason',
'rescript',
'typescript',
'typescriptreact',
-- mixed
'vue',
'svelte',
'templ',
},
root_markers = {
'tailwind.config.js'
},
}

View file

@ -0,0 +1,10 @@
return {
cmd = { 'zls' },
filetypes = { 'zig' },
root_markers = {
'zls.json',
'build.zig',
'.git'
},
}