chore: added zls

This commit is contained in:
Andre Henriques 2023-05-20 21:59:23 +01:00
parent c0b8041df3
commit 307667bcce
3 changed files with 50 additions and 36 deletions

13
lua/andr3/langs/zig.lua Normal file
View File

@ -0,0 +1,13 @@
local O = {}
local lspConfig = require('lspconfig')
function O.setup(on_attach, lsp_flags, capabilities)
lspConfig.zls.setup{
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
}
end
return O

View File

@ -323,4 +323,5 @@ require 'andr3.langs.svelte'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.ccls'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.python'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.bash'.setup(on_attach, lsp_flags, capabilities)
require 'andr3.langs.zig'.setup(on_attach, lsp_flags, capabilities)

View File

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end
time([[Luarocks path setup]], true)
local package_path_str = "/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
local package_path_str = "/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end
@ -76,172 +76,172 @@ time([[Defining packer_plugins]], true)
_G.packer_plugins = {
["ayu-vim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/ayu-vim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/ayu-vim",
url = "https://github.com/ayu-theme/ayu-vim"
},
catppuccin = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/catppuccin",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/catppuccin",
url = "https://github.com/catppuccin/nvim"
},
["cmp-buffer"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-buffer",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-buffer",
url = "https://github.com/hrsh7th/cmp-buffer"
},
["cmp-cmdline"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
url = "https://github.com/hrsh7th/cmp-cmdline"
},
["cmp-nvim-lsp"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
},
["cmp-path"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-path",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-path",
url = "https://github.com/hrsh7th/cmp-path"
},
["eva01.vim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/eva01.vim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/eva01.vim",
url = "https://github.com/hachy/eva01.vim"
},
["html5.vim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/html5.vim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/html5.vim",
url = "https://github.com/othree/html5.vim"
},
["lsp_signature.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim",
url = "https://github.com/ray-x/lsp_signature.nvim"
},
["lspkind.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
url = "https://github.com/onsails/lspkind.nvim"
},
["lspsaga.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
url = "https://github.com/glepnir/lspsaga.nvim"
},
["night_owl_light.vim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/night_owl_light.vim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/night_owl_light.vim",
url = "https://github.com/macguirerintoul/night_owl_light.vim"
},
["null-ls.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
},
["nvim-cmp"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-cmp",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-cmp",
url = "https://github.com/hrsh7th/nvim-cmp"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
["nvim-tree.lua"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
url = "https://github.com/nvim-tree/nvim-tree.lua"
},
["nvim-treesitter"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
["nvim-web-devicons"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
url = "https://github.com/nvim-tree/nvim-web-devicons"
},
nvimgelio = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvimgelio",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvimgelio",
url = "https://github.com/nyngwang/nvimgelio"
},
["oxocarbon.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/oxocarbon.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/oxocarbon.nvim",
url = "https://github.com/nyoom-engineering/oxocarbon.nvim"
},
["packer.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/packer.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
},
["plenary.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/plenary.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim"
},
["prettier.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/prettier.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/prettier.nvim",
url = "https://github.com/MunifTanjim/prettier.nvim"
},
["telescope.nvim"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/telescope.nvim",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
undotree = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/undotree",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/undotree",
url = "https://github.com/mbbill/undotree"
},
["vim-airline"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-airline",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-airline",
url = "https://github.com/vim-airline/vim-airline"
},
["vim-airline-themes"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-airline-themes",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-airline-themes",
url = "https://github.com/vim-airline/vim-airline-themes"
},
["vim-commentary"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-commentary",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-commentary",
url = "https://github.com/chrisbra/vim-commentary"
},
["vim-cyberpunk"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-cyberpunk",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-cyberpunk",
url = "https://github.com/thedenisnikulin/vim-cyberpunk"
},
["vim-gitgutter"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
url = "https://github.com/airblade/vim-gitgutter"
},
["vim-javascript"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-javascript",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-javascript",
url = "https://github.com/pangloss/vim-javascript"
},
["vim-svelte"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-svelte",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-svelte",
url = "https://github.com/evanleck/vim-svelte"
},
["vim-visual-multi"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-visual-multi",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-visual-multi",
url = "https://github.com/mg979/vim-visual-multi"
},
["vim-vsnip"] = {
loaded = true,
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-vsnip",
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-vsnip",
url = "https://github.com/hrsh7th/vim-vsnip"
}
}