aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio
diff options
context:
space:
mode:
Diffstat (limited to 'lua/gabrielgio')
-rw-r--r--lua/gabrielgio/lsp.lua11
-rw-r--r--lua/gabrielgio/mini.lua12
-rw-r--r--lua/gabrielgio/settable.lua7
3 files changed, 22 insertions, 8 deletions
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("<leader>w", "<C-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("<leader>w", "<C-w>w")
+key.nnoremap("<TAB>", ":bnext<CR>")
+key.nnoremap("<S-TAB>", ":bprevious<CR>")