nvim-config

Log | Files | Refs | Submodules | README

commit 9e18f0b5f215c89bb3a41cdfaa41b83fd3c50015
parent d017dea1f97f50c79bda5e48390c679b54472b1a
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date:   Wed, 21 Sep 2022 14:54:29 +0200

update

Diffstat:
Mafter/ftplugin/c.lua | 6++++--
Minit.lua | 4+++-
Mlua/lsp_config.lua | 1+
Mlua/neogit-config.lua | 1+
Mlua/plugins.lua | 9---------
5 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/after/ftplugin/c.lua b/after/ftplugin/c.lua @@ -1,6 +1,8 @@ vim.opt_local.expandtab = true -vim.opt_local.textwidth = 80 -vim.opt_local.tabstop = 2 +vim.opt_local.textwidth = 100 +vim.opt_local.tabstop = 4 +vim.opt_local.softtabstop = 4 +vim.opt_local.shiftwidth = 4 vim.opt_local.foldmethod = "expr" vim.opt_local.foldexpr = "nvim_treesitter#foldexpr()" vim.opt_local.foldlevel = 0 diff --git a/init.lua b/init.lua @@ -1,6 +1,8 @@ local M = {} --- local ok, imp = pcall(require, 'impatient') +vim.g.azy_ui_debug = 1 + +local ok, imp = pcall(require, 'impatient') -- if ok then -- imp.enable_profile() diff --git a/lua/lsp_config.lua b/lua/lsp_config.lua @@ -206,6 +206,7 @@ local system_lsps = { }, clangd = { + command = { "clangd", "--limit-results=0", "--suggest-missing-includes", "--all-scopes-completion", "--compile-commands-dir=build/" }, filetypes = { "c", "cpp" }, root_markers = { "CMakeLists.txt", ".git" }, }, diff --git a/lua/neogit-config.lua b/lua/neogit-config.lua @@ -9,6 +9,7 @@ gitsigns.setup { on_attach = function(bufnr) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-S>', ':Gitsigns stage_hunk<CR>', { silent = true }) vim.api.nvim_buf_set_keymap(bufnr, 'v', '<C-S>', ':Gitsigns stage_hunk<CR>', { silent = true }) + vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gbl', ':Gitsigns blame_line<CR>', { silent = true }) end } diff --git a/lua/plugins.lua b/lua/plugins.lua @@ -104,15 +104,6 @@ return packer.startup(function(use) -- Git because git use { 'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } } - use { - 'ldelossa/gh.nvim', - requires = { { 'ldelossa/litee.nvim' } }, - config = function() - require('litee.lib').setup() - require('litee.gh').setup { - } - end - } -- One true colorscheme localuse 'vigoux/oak' -- Not sure it is that binary