diff options
author | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2025-03-06 14:40:59 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2025-03-06 14:40:59 +0100 |
commit | ece1b9ec93416683717f4308f62ac154f3e9d045 (patch) | |
tree | c86c232b52b6316a3bcbf67ced8ad293667f7383 /lua | |
parent | 3b1b874ac22ef5626098bd7a0b761167aeb6374a (diff) | |
download | gabrielgio.lua-ece1b9ec93416683717f4308f62ac154f3e9d045.tar.gz gabrielgio.lua-ece1b9ec93416683717f4308f62ac154f3e9d045.tar.bz2 gabrielgio.lua-ece1b9ec93416683717f4308f62ac154f3e9d045.zip |
feat: Sync
Diffstat (limited to 'lua')
-rw-r--r-- | lua/gabrielgio/formatter.lua | 6 | ||||
-rw-r--r-- | lua/gabrielgio/lsp.lua | 10 | ||||
-rw-r--r-- | lua/gabrielgio/settable.lua | 1 | ||||
-rw-r--r-- | lua/gabrielgio/term.lua | 3 |
4 files changed, 4 insertions, 16 deletions
diff --git a/lua/gabrielgio/formatter.lua b/lua/gabrielgio/formatter.lua index 53e95f5..5c13d89 100644 --- a/lua/gabrielgio/formatter.lua +++ b/lua/gabrielgio/formatter.lua @@ -2,10 +2,6 @@ local formatter = require("formatter") local go = require("formatter.filetypes.go") local util = require("formatter.util") -local function yamlfmt() - return { exe = "yamlfmt" } -end - local function terraformfmt() return { exe = "terraform", @@ -27,7 +23,7 @@ formatter.setup({ scss = { require("formatter.filetypes.css").cssbeautify }, go = { go.gofumpt, go.goimports }, terraform = { terraformfmt }, - yaml = { yamlfmt }, + yaml = { require("formatter.filetypes.yaml").yamlfmt }, }, ["*"] = { require("formatter.filetypes.any").remove_trailing_whitespace, diff --git a/lua/gabrielgio/lsp.lua b/lua/gabrielgio/lsp.lua index 6857b5d..5eb3908 100644 --- a/lua/gabrielgio/lsp.lua +++ b/lua/gabrielgio/lsp.lua @@ -44,16 +44,6 @@ lsp_config.gopls.setup({ on_attach = on_attach, }) -lsp_config.yamlls.setup({ - settings = { - yaml = { - schemas = { - ["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/refs/heads/main/schemas/v3.0/schema.yaml"] = "/api-specs/v2/*", - }, - }, - }, -}) - lsp_config.lua_ls.setup({ on_attach = on_attach, settings = { diff --git a/lua/gabrielgio/settable.lua b/lua/gabrielgio/settable.lua index fad3f80..76aa8d6 100644 --- a/lua/gabrielgio/settable.lua +++ b/lua/gabrielgio/settable.lua @@ -31,6 +31,7 @@ vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.clipboard = (vim.opt.clipboard + "unnamedplus") vim.opt.spelllang = { "en", "pt_br", "de" } vim.opt.spelloptions = "camel" +vim.opt.spell = true vim.opt.list = true vim.opt.listchars = { eol = "\194\172", diff --git a/lua/gabrielgio/term.lua b/lua/gabrielgio/term.lua index d92fc0c..0bd5675 100644 --- a/lua/gabrielgio/term.lua +++ b/lua/gabrielgio/term.lua @@ -10,7 +10,8 @@ local lastCommand = "" key.nnoremap("<C-n>", ":Neogit kind=replace<cr>") key.nnoremap("<C-p>", ":ToggleTerm size=40 direction=float<cr>") -key.nnoremap("<C-l>", ":ToggleTerm size=200 direction=vertical<cr>") +key.nnoremap("<C-l>", ":ToggleTerm size=100 direction=vertical<cr>") +key.vnoremap("<C-y>", ":ToggleTermSendVisualSelection<cr>") key.nnoremap("<C-y>", function() local user_input = vim.fn.input("$ ") |