diff options
| author | Robert Günzler <r@gnzler.io> | 2022-12-02 18:28:01 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-12-02 18:31:47 +0100 |
| commit | 2dc64c509a5292bd4f0ec4ac11dae4ec5e8c6525 (patch) | |
| tree | bc2e077288b54e13d5ac560bb12ff208d71039fb /.vim/lua | |
| parent | d58b8d7030bb2e8cdfd7b3ce8239fe3d5d33ba60 (diff) | |
vim: more random cleanups
Diffstat (limited to '.vim/lua')
| -rw-r--r-- | .vim/lua/internal/job.lua | 3 | ||||
| -rw-r--r-- | .vim/lua/internal/lsp.lua | 4 | ||||
| -rw-r--r-- | .vim/lua/plugins.lua | 22 |
3 files changed, 10 insertions, 19 deletions
diff --git a/.vim/lua/internal/job.lua b/.vim/lua/internal/job.lua index 5e3b6e1..64d9837 100644 --- a/.vim/lua/internal/job.lua +++ b/.vim/lua/internal/job.lua @@ -1,4 +1,3 @@ -local Job = require ('plenary.job') local spinner_ok, spinner = pcall(require, 'spinner.core') local M = { @@ -97,7 +96,7 @@ function M.jobstart(opts) opts.args[i] = vim.fn.expandcmd(opts.args[i]) end - local j = Job:new(opts) + local j = require ('plenary.job'):new(opts) j:start() return j diff --git a/.vim/lua/internal/lsp.lua b/.vim/lua/internal/lsp.lua index 1e3dca3..aa2794e 100644 --- a/.vim/lua/internal/lsp.lua +++ b/.vim/lua/internal/lsp.lua @@ -113,9 +113,7 @@ local servers = { clang = { excludeArgs = { '-frounding-math' } }, }, }, - clangd = { - root_dir = lsp.util.root_pattern('.ccls','meson.build','.git'), - }, + clangd = {}, elixirls = { cmd = { 'elixir-ls' }, settings = { diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 287d08f..1293989 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -1,12 +1,12 @@ -- vim: fdm=marker fdl=0 ---@diagnostic disable: undefined-global - -- load by calling `lua require('plugins')` from init.vim local g = vim.g -- force packer into a system directory {{{ if not vim.fn.filewritable(vim.fn.stdpath('cache')) == 2 then +-- TODO: what does this check for? return end @@ -51,11 +51,6 @@ if not (vim.fn.empty(vim.fn.glob(compilepath)) > 0) then end require('packer').startup({function() - -- run sync() if compilepath doesn't exist (this usually means first start) - if packer_bootstrapped then - require('packer').sync() - end - -- auto-compile on save -- {{{ do vim.api.nvim_create_user_command('PackerRecompile', @@ -78,6 +73,12 @@ require('packer').startup({function() }) end -- }}} + -- run sync() if packer was just bootstrapped, usually means fresh install + if packer_bootstrapped then + -- require('packer').sync() + vim.cmd.PackerRecompile() + end + -- disable built-in plugins disable_distribution_plugins() @@ -246,8 +247,6 @@ require('packer').startup({function() 'zig', 'org', - 'norg_meta', - 'norg_table', 'hare', 'gotmpl', } -- }}} @@ -1279,12 +1278,7 @@ require('packer').startup({function() end end} -- }}} - use {'~/devel/projects/k2', rtp = 'nvim', module = {'k2'}, cmd = {'K2'}, -- {{{ - config = function() - require('k2').setup() - end} -- }}} - - use {'~/devel/projects/spinner.nvim', module = {'spinner'}, -- {{{ + use {'https://git.sr.ht/~robertgzr/spinner.nvim', module = {'spinner'}, -- {{{ config = function() require('spinner').setup { spinner = {'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'}, |