diff options
author | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2024-07-04 11:53:24 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2024-07-04 11:53:24 +0200 |
commit | df0b02f2ecf05d63d028b602b71197ac7ff31289 (patch) | |
tree | c5e9695d8f60aceed29e249ef7775b0aef36c05c /lua/gabrielgio | |
parent | 150c0b6b099e7e0728855bb7f58889208efb4563 (diff) | |
download | gabrielgio.lua-df0b02f2ecf05d63d028b602b71197ac7ff31289.tar.gz gabrielgio.lua-df0b02f2ecf05d63d028b602b71197ac7ff31289.tar.bz2 gabrielgio.lua-df0b02f2ecf05d63d028b602b71197ac7ff31289.zip |
feat: Sync
Diffstat (limited to 'lua/gabrielgio')
-rw-r--r-- | lua/gabrielgio/lsp.lua | 11 | ||||
-rw-r--r-- | lua/gabrielgio/mini.lua | 12 | ||||
-rw-r--r-- | lua/gabrielgio/settable.lua | 7 |
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>") |