diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-02-21 08:50:09 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-02-21 08:50:09 +0100 |
| commit | 5b30253665ea60ff81ba5f858d0e4b2d4cab7f76 (patch) | |
| tree | 99890cc0769e079eeae2df5452d86a090b39a1f8 | |
| parent | 578f32ce066907fbb7f39b00318abc5ed710c702 (diff) | |
| download | nvim-conf-5b30253665ea60ff81ba5f858d0e4b2d4cab7f76.tar.gz nvim-conf-5b30253665ea60ff81ba5f858d0e4b2d4cab7f76.zip | |
move some files, add trouble and efm
| -rw-r--r-- | init.lua | 1 | ||||
| -rw-r--r-- | lua/alpha/lsp.lua (renamed from after/plugin/lsp.lua) | 13 | ||||
| -rw-r--r-- | lua/alpha/plugins.lua | 13 | ||||
| -rw-r--r-- | plugin/packer_compiled.lua | 12 |
4 files changed, 38 insertions, 1 deletions
@@ -19,3 +19,4 @@ require "alpha.telescope.mappings" require "alpha.dap" require "alpha.refactor" +require "alpha.lsp" diff --git a/after/plugin/lsp.lua b/lua/alpha/lsp.lua index 53d9746..5133edf 100644 --- a/after/plugin/lsp.lua +++ b/lua/alpha/lsp.lua @@ -52,3 +52,16 @@ lsp_installer.on_server_ready(function(server) server:setup(opts) vim.cmd [[ do User LspAttachBuffers ]] end) + +require "lspconfig".efm.setup { + init_options = {documentFormatting = true}, + settings = { + rootMarkers = {".git/"}, + languages = { + blade = { + {formatCommand = "blade-formatter --stdin", formatStdin = true} + }, + json = {} + } + } +} diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua index ca08a4f..581b7ca 100644 --- a/lua/alpha/plugins.lua +++ b/lua/alpha/plugins.lua @@ -140,6 +140,19 @@ return require('packer').startup(function(use) } } + -- Lua + use { + "folke/trouble.nvim", + requires = "kyazdani42/nvim-web-devicons", + config = function() + require("trouble").setup { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + } + end + } + use 'jwalton512/vim-blade' use 'dracula/vim' diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index 91bbd56..f7a7e71 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -292,6 +292,12 @@ _G.packer_plugins = { path = "/home/alpha/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, + ["trouble.nvim"] = { + config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0" }, + loaded = true, + path = "/home/alpha/.local/share/nvim/site/pack/packer/start/trouble.nvim", + url = "https://github.com/folke/trouble.nvim" + }, vim = { loaded = true, path = "/home/alpha/.local/share/nvim/site/pack/packer/start/vim", @@ -406,6 +412,10 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) +-- Config for: trouble.nvim +time([[Config for trouble.nvim]], true) +try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim") +time([[Config for trouble.nvim]], false) -- Config for: git-worktree.nvim time([[Config for git-worktree.nvim]], true) try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\17git-worktree\frequire\0", "config", "git-worktree.nvim") @@ -413,8 +423,8 @@ time([[Config for git-worktree.nvim]], false) -- Command lazy-loads time([[Defining lazy-load commands]], true) -pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Http lua require("packer.load")({'vim-http'}, { cmd = "Http", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file VimwikiIndex lua require("packer.load")({'vimwiki'}, { cmd = "VimwikiIndex", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Http lua require("packer.load")({'vim-http'}, { cmd = "Http", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]]) time([[Defining lazy-load commands]], false) vim.cmd [[augroup packer_load_aucmds]] |