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:
parent
76fed65fbb
commit
d4de554376
4 changed files with 15 additions and 6 deletions
2
init.lua
2
init.lua
|
@ -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"
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue