~tommoa/dots

dfd0b7d05f5f39cec7fcfd9b7e10e75a4ce396f3 — Tom Almeida 8 months ago 99fd0c3
chore(nvim): Update nvim config to reduce messages on startup
M .config/nvim/lua/tom/completion.lua => .config/nvim/lua/tom/completion.lua +2 -2
@@ 9,7 9,7 @@ end
--  - If we can complete, complete
--  - If we can fill out a snipped, fill out a snippet
--  - Otherwise, put in a tab
_G.tab_complete = function(args)
_G.tab_complete = function(_)
    if cmp.visible() then
        -- vim.fn['coc#_select_confirm']()
        return cmp.confirm()


@@ 27,7 27,7 @@ end
-- to the end of a line without whitespace can be perilous, as the
-- auto-complete kicks in and decides to enter whatever it'd like when I hit
-- "enter" to go to a new line. This function fixes that
_G.do_enter_key = function(args)
_G.do_enter_key = function(_)
    if cmp.visible() then
        -- Make sure compe closes so that floating windows get cleaned up
        cmp.close()

M .config/nvim/lua/tom/statusline.lua => .config/nvim/lua/tom/statusline.lua +1 -0
@@ 127,6 127,7 @@ gls.left[1] = {
gls.left[3] = {
    LspStatus = {
        provider = { LspStatus },
        condition = condition.check_active_lsp,
        highlight = { colors.fg, colors.section_bg },
    },
}

M .config/nvim/lua/tom/tree-sitter.lua => .config/nvim/lua/tom/tree-sitter.lua +3 -0
@@ 4,6 4,9 @@ local uname = vim.loop.os_uname()
configs.setup {
    ensure_installed = "all",
    ignore_install = {},
    auto_install = true,
    sync_install = false,
    modules= {},
    highlight = {
        -- Treesitter doesn't have 32-bit binaries
        enable = uname.machine ~= "i686",