Many changes:

- disable project plugin
- try to fix <Tab> jumping all around
- don't paste with 'p' on Select mode (only on visual mode)
- map '-' to '/'
- don't override prettier config
This commit is contained in:
Andy Teijelo 2023-02-02 10:57:07 -05:00
parent 76fed65fbb
commit d4de554376
4 changed files with 15 additions and 6 deletions

View file

@ -17,7 +17,7 @@ require "user.nvim-tree"
require "user.bufferline" require "user.bufferline"
require "user.lualine" require "user.lualine"
require "user.toggleterm" require "user.toggleterm"
require "user.project" -- require "user.project"
require "user.illuminate" require "user.illuminate"
require "user.indentline" require "user.indentline"
require "user.lsp" require "user.lsp"

View file

@ -43,6 +43,10 @@ local kind_icons = {
TypeParameter = "", TypeParameter = "",
} }
luasnip.config.setup({
region_check_events = "CursorHold,InsertLeave,InsertEnter"
})
cmp.setup({ cmp.setup({
snippet = { snippet = {
expand = function(args) expand = function(args)

View file

@ -48,7 +48,7 @@ keymap("n", "<M-q>", "<cmd>Bdelete<CR>", opts)
keymap("n", "<M-Q>", "<cmd>Bdelete!<CR>", opts) keymap("n", "<M-Q>", "<cmd>Bdelete!<CR>", opts)
-- Better paste -- Better paste
keymap("v", "p", '"_dP', opts) keymap("x", "p", '"_dP', opts)
-- Insert -- -- Insert --
-- Press jk fast to enter -- Press jk fast to enter
@ -59,6 +59,10 @@ keymap("v", "p", '"_dP', opts)
keymap("v", "<", "<gv", opts) keymap("v", "<", "<gv", opts)
keymap("v", ">", ">gv", opts) keymap("v", ">", ">gv", opts)
-- search with '-', for my LatinAmerican layour
keymap("n", "-", "/", opts)
keymap("x", "-", "/", opts)
-- Plugins -- -- Plugins --
-- NvimTree -- NvimTree

View file

@ -12,10 +12,11 @@ local diagnostics = null_ls.builtins.diagnostics
null_ls.setup { null_ls.setup {
debug = false, debug = false,
sources = { sources = {
formatting.prettier.with { formatting.prettier,
extra_filetypes = { "toml" }, -- formatting.prettier.with {
extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" }, -- extra_filetypes = { "toml" },
}, -- extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" },
-- },
formatting.black.with { extra_args = { "--fast" } }, formatting.black.with { extra_args = { "--fast" } },
formatting.stylua, formatting.stylua,
formatting.google_java_format, formatting.google_java_format,