aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/gabrielgio/formatter.lua6
-rw-r--r--lua/gabrielgio/lsp.lua10
-rw-r--r--lua/gabrielgio/settable.lua1
-rw-r--r--lua/gabrielgio/term.lua3
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("$ ")