This commit is contained in:
dobiadi
2024-01-12 20:55:44 +01:00
parent dbbc705294
commit aa9cb3558a
3 changed files with 58 additions and 25 deletions

View File

@@ -55,6 +55,20 @@ require'lspconfig'.phpactor.setup{
["language_server_psalm.enabled"] = false,
}
}
require'lspconfig'.asm_lsp.setup{
on_attach = on_attach,
capabilities = capabilities,
cmd = {
"/home/dobiadi/.cargo/bin/asm-lsp"
},
}
require'lspconfig'.elixirls.setup{
on_attach = on_attach,
capabilities = capabilities,
cmd = {
"elixir-ls"
},
}
vim.opt.completeopt = {"menu", "menuone", "noselect"}
-- Set up nvim-cmp.
@@ -106,6 +120,11 @@ vim.diagnostic.config({
require("null-ls").setup({
sources = {
-- Terraform
require("null-ls").builtins.formatting.terraform_fmt,
require("null-ls").builtins.diagnostics.terraform_validate,
-- Packer
require("null-ls").builtins.formatting.hclfmt,
-- JavaScript
require("null-ls").builtins.formatting.prettier,
require("null-ls").builtins.diagnostics.eslint_d,
@@ -118,5 +137,9 @@ require("null-ls").setup({
require("null-ls").builtins.diagnostics.phpcs.with({ extra_args = {"--standard=PSR12"}}),
-- Rust
require("null-ls").builtins.formatting.rustfmt,
-- ASM
require("null-ls").builtins.formatting.asmfmt,
-- Elixir
require("null-ls").builtins.formatting.mix,
},
})

View File

@@ -9,7 +9,7 @@ return require('packer').startup(function(use)
-- LSP
use 'neovim/nvim-lspconfig'
use 'jose-elias-alvarez/null-ls.nvim'
use 'nvimtools/none-ls.nvim'
-- Autocomplete
use 'hrsh7th/nvim-cmp'
@@ -22,7 +22,7 @@ return require('packer').startup(function(use)
-- Telescope
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
'nvim-telescope/telescope.nvim', tag = '0.1.5',
requires = { {'nvim-lua/plenary.nvim'} }
}
use 'nvim-treesitter/nvim-treesitter'

View File

@@ -49,8 +49,8 @@ local function save_profiles(threshold)
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/dobi/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/dobi/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/dobi/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/dobi/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/dobi/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
local package_path_str = "/home/dobiadi/.cache/nvim/packer_hererocks/2.1.1702233742/share/lua/5.1/?.lua;/home/dobiadi/.cache/nvim/packer_hererocks/2.1.1702233742/share/lua/5.1/?/init.lua;/home/dobiadi/.cache/nvim/packer_hererocks/2.1.1702233742/lib/luarocks/rocks-5.1/?.lua;/home/dobiadi/.cache/nvim/packer_hererocks/2.1.1702233742/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/dobiadi/.cache/nvim/packer_hererocks/2.1.1702233742/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,98 +76,108 @@ time([[Defining packer_plugins]], true)
_G.packer_plugins = {
LuaSnip = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/LuaSnip",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip"
},
["cmp-buffer"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/cmp-buffer",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/cmp-buffer",
url = "https://github.com/hrsh7th/cmp-buffer"
},
["cmp-nvim-lsp"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
},
["cmp-nvim-lsp-signature-help"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"
},
["cmp-path"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/cmp-path",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/cmp-path",
url = "https://github.com/hrsh7th/cmp-path"
},
cmp_luasnip = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
url = "https://github.com/saadparwaiz1/cmp_luasnip"
},
fd = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/fd",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/fd",
url = "https://github.com/sharkdp/fd"
},
["lualine.nvim"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/lualine.nvim",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/lualine.nvim",
url = "https://github.com/nvim-lualine/lualine.nvim"
},
["null-ls.nvim"] = {
["none-ls.nvim"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/none-ls.nvim",
url = "https://github.com/nvimtools/none-ls.nvim"
},
["nvim-cmp"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/nvim-cmp",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/nvim-cmp",
url = "https://github.com/hrsh7th/nvim-cmp"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
["nvim-treesitter"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
["nvim-treesitter-context"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/nvim-treesitter-context",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/nvim-treesitter-context",
url = "https://github.com/nvim-treesitter/nvim-treesitter-context"
},
["nvim-web-devicons"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
url = "https://github.com/kyazdani42/nvim-web-devicons"
},
["packer.nvim"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/packer.nvim",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
},
["plenary.nvim"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/plenary.nvim",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim"
},
ripgrep = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/ripgrep",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/ripgrep",
url = "https://github.com/BurntSushi/ripgrep"
},
["telescope.nvim"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/telescope.nvim",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
["tokyonight.nvim"] = {
loaded = true,
path = "/home/dobi/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
url = "https://github.com/folke/tokyonight.nvim"
},
undotree = {
loaded = true,
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/undotree",
url = "https://github.com/mbbill/undotree"
},
["vim-fugitive"] = {
loaded = true,
path = "/home/dobiadi/.local/share/nvim/site/pack/packer/start/vim-fugitive",
url = "https://github.com/tpope/vim-fugitive"
}
}