mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
added existing nvim config
This commit is contained in:
parent
d6d6dab380
commit
bdf3cdecda
24 changed files with 996 additions and 0 deletions
26
vim/.config/nvim/lsp/ccls.lua
Normal file
26
vim/.config/nvim/lsp/ccls.lua
Normal 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' },
|
||||
},
|
||||
}
|
||||
|
||||
28
vim/.config/nvim/lsp/clangd.lua
Normal file
28
vim/.config/nvim/lsp/clangd.lua
Normal 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' },
|
||||
},
|
||||
}
|
||||
|
||||
5
vim/.config/nvim/lsp/luals.lua
Normal file
5
vim/.config/nvim/lsp/luals.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
cmd = {'lua-language-server'},
|
||||
filetypes = {'lua'},
|
||||
root_markers = {'.luarc.json', '.luarc.jsonc'},
|
||||
}
|
||||
4
vim/.config/nvim/lsp/pyright.lua
Normal file
4
vim/.config/nvim/lsp/pyright.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
cmd = { "pyright-langserver", "--stdio" },
|
||||
filetypes = { "python" }
|
||||
}
|
||||
9
vim/.config/nvim/lsp/rust_analyzer.lua
Normal file
9
vim/.config/nvim/lsp/rust_analyzer.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
cmd = { 'rust-analyzer' },
|
||||
filetypes = { 'rust', 'rs' },
|
||||
root_markers = {
|
||||
'cargo.toml',
|
||||
'.git'
|
||||
},
|
||||
}
|
||||
|
||||
22
vim/.config/nvim/lsp/superhtml.lua
Normal file
22
vim/.config/nvim/lsp/superhtml.lua
Normal 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' },
|
||||
}
|
||||
62
vim/.config/nvim/lsp/tailwind-ls.lua
Normal file
62
vim/.config/nvim/lsp/tailwind-ls.lua
Normal 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'
|
||||
},
|
||||
}
|
||||
10
vim/.config/nvim/lsp/zls.lua
Normal file
10
vim/.config/nvim/lsp/zls.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
cmd = { 'zls' },
|
||||
filetypes = { 'zig' },
|
||||
root_markers = {
|
||||
'zls.json',
|
||||
'build.zig',
|
||||
'.git'
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue