diff --git a/config/nvim/init_min.lua b/config/nvim/init_min.lua index 188e08d..36ac9dc 100644 --- a/config/nvim/init_min.lua +++ b/config/nvim/init_min.lua @@ -1,4 +1,3 @@ --- [[ OPTIONS ]] vim.g.mapleader = " " vim.g.termguicolors = true vim.o.path = "**" @@ -24,8 +23,8 @@ vim.opt.clipboard = "unnamedplus" vim.o.completeopt = 'menuone,noselect' vim.cmd(":colorscheme retrobox") vim.api.nvim_create_autocmd("BufEnter", { pattern = "term://*", callback = function() vim.cmd("startinsert") end }) +vim.lsp.enable({ "gopls", "gdscript" }) --- [[ PLUGINS ]] vim.pack.add({ { src = "https://github.com/ibhagwan/fzf-lua" }, { src = "https://github.com/tribela/transparent.nvim" }, @@ -35,19 +34,18 @@ vim.pack.add({ require("fzf-lua").setup() require('nvim-treesitter.configs').setup({highlight = { enable = true }}) --- [[ MAPPINGS ]] local map = vim.keymap.set -map("n", '', 'noh', { silent = true }) -map("t", "", "") map({"t", "n"}, "", "") map({"t", "n"}, "", "") map({"t", "n"}, "", "") map({"t", "n"}, "", "") +map({"i", "n"}, "", "") +map("n", '', 'noh') +map("t", "", "") map("v", "J", ":m '>+1gv=gv") map("v", "K", ":m '<-2gv=gv") map("v", "", "" , ">gv") -map({"i", "n"}, "", "") map("n", "gd", ":lua vim.lsp.buf.definition()") map("n", "p", "b#") map("n", "e", ":Ex") @@ -62,9 +60,6 @@ map("n", "sh", ":lua FzfLua.help_tags()") map("n", "1", ":vsplit | vertical resize 95 | terminala") map("n", "2", ":split | horizontal resize 25 | terminala") --- [[ LSP ]] -vim.lsp.enable({ "gopls", "gdscript" }) - -- [[ GODOT ]] local cwd = vim.fn.getcwd() for _, path in ipairs({ cwd, cwd .. '/..' }) do