From df0b02f2ecf05d63d028b602b71197ac7ff31289 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 4 Jul 2024 11:53:24 +0200 Subject: feat: Sync --- lua/gabrielgio/lsp.lua | 11 ++++++++++- lua/gabrielgio/mini.lua | 12 ++++++------ lua/gabrielgio/settable.lua | 7 ++++++- 3 files changed, 22 insertions(+), 8 deletions(-) (limited to 'lua/gabrielgio') diff --git a/lua/gabrielgio/lsp.lua b/lua/gabrielgio/lsp.lua index 3856db9..97f6d03 100644 --- a/lua/gabrielgio/lsp.lua +++ b/lua/gabrielgio/lsp.lua @@ -34,7 +34,6 @@ load_all({ lsp_config.cssls.setup, lsp_config.html.setup, lsp_config.emmet_ls.setup, - lsp_config.lua_ls.setup, lsp_config.pylsp.setup }) @@ -43,3 +42,13 @@ lsp_config.gopls.setup({ cmd_env = {GOFLAGS = "-tags=unit,integration,e2e"}, on_attach = on_attach }) + +lsp_config.lua_ls.setup({ + settings = { + Lua = { + diagnostics = { + globals = {'vim'} + } + } + } +}) diff --git a/lua/gabrielgio/mini.lua b/lua/gabrielgio/mini.lua index 28b49b0..d3f8567 100644 --- a/lua/gabrielgio/mini.lua +++ b/lua/gabrielgio/mini.lua @@ -1,11 +1,11 @@ -local cmp = require("mini.completion") local diff = require("mini.diff") +local cmp = require("mini.completion") local status = require("mini.statusline") +local icons = require('mini.icons') +local tabline = require('mini.tabline') +diff.setup({view = {style = 'sign'}}) cmp.setup() -diff.setup({ - view = { - style = 'sign' - } -}) status.setup() +icons.setup() +tabline.setup() diff --git a/lua/gabrielgio/settable.lua b/lua/gabrielgio/settable.lua index d70dfa1..4d1cc0d 100644 --- a/lua/gabrielgio/settable.lua +++ b/lua/gabrielgio/settable.lua @@ -1,4 +1,5 @@ local key = require("gabrielgio.key") + vim.opt.shiftwidth = 4 vim.opt.tabstop = 4 vim.opt.softtabstop = 4 @@ -43,7 +44,6 @@ vim.opt.updatetime = 100 vim.opt.foldmethod = "expr" vim.opt.foldexpr = "nvim_treesitter#foldexpr()" vim.opt.foldenable = false -key.nnoremap("w", "w") vim.cmd("colorscheme edge") vim.o.background = "light" @@ -54,3 +54,8 @@ vim.g.maplocalleader = ";" vim.g.cmake_build_dir = "build" vim.g.cmake_build_type = "Debug" + + +key.nnoremap("w", "w") +key.nnoremap("", ":bnext") +key.nnoremap("", ":bprevious") -- cgit v1.2.3