mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
nvim config openscad
This commit is contained in:
parent
911d28fc8c
commit
f5ab2895ce
@ -225,15 +225,16 @@ pcall(vim.cmd, "source ~/.config/nvim/shortcuts.vim")
|
||||
|
||||
-- local lspconfig = require'lspconfig' -- For Neovim versions before 0.11
|
||||
|
||||
-- These language servers are in pacman or the AUR with the same name as given below, unless otherwise noted.
|
||||
|
||||
vim.lsp.start({
|
||||
vim.lsp.start({ -- OpenSCAD LSP compatibility. Doesn't break anything but needs work.
|
||||
name = "openscad_lsp",
|
||||
cmd = { "/usr/bin/openscad-lsp" },
|
||||
filetypes = { "scad" },
|
||||
root_dir = vim.fs.dirname(vim.fs.find({ ".git" }, { upward = true })[1] or vim.api.nvim_buf_get_name(0)),
|
||||
})
|
||||
|
||||
-- These language servers are in pacman or the AUR with the same name as given below, unless otherwise noted.
|
||||
|
||||
local servers = {
|
||||
--'server_name', -- Language name -- Pacman/AUR name
|
||||
'pyright', -- Python -- pyright
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user