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.lualine"
|
||||
require "user.toggleterm"
|
||||
require "user.project"
|
||||
-- require "user.project"
|
||||
require "user.illuminate"
|
||||
require "user.indentline"
|
||||
require "user.lsp"
|
||||
|
|
|
@ -43,6 +43,10 @@ local kind_icons = {
|
|||
TypeParameter = "",
|
||||
}
|
||||
|
||||
luasnip.config.setup({
|
||||
region_check_events = "CursorHold,InsertLeave,InsertEnter"
|
||||
})
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
|
|
|
@ -48,7 +48,7 @@ keymap("n", "<M-q>", "<cmd>Bdelete<CR>", opts)
|
|||
keymap("n", "<M-Q>", "<cmd>Bdelete!<CR>", opts)
|
||||
|
||||
-- Better paste
|
||||
keymap("v", "p", '"_dP', opts)
|
||||
keymap("x", "p", '"_dP', opts)
|
||||
|
||||
-- Insert --
|
||||
-- Press jk fast to enter
|
||||
|
@ -59,6 +59,10 @@ keymap("v", "p", '"_dP', opts)
|
|||
keymap("v", "<", "<gv", opts)
|
||||
keymap("v", ">", ">gv", opts)
|
||||
|
||||
-- search with '-', for my LatinAmerican layour
|
||||
keymap("n", "-", "/", opts)
|
||||
keymap("x", "-", "/", opts)
|
||||
|
||||
-- Plugins --
|
||||
|
||||
-- NvimTree
|
||||
|
|
|
@ -12,10 +12,11 @@ local diagnostics = null_ls.builtins.diagnostics
|
|||
null_ls.setup {
|
||||
debug = false,
|
||||
sources = {
|
||||
formatting.prettier.with {
|
||||
extra_filetypes = { "toml" },
|
||||
extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" },
|
||||
},
|
||||
formatting.prettier,
|
||||
-- formatting.prettier.with {
|
||||
-- extra_filetypes = { "toml" },
|
||||
-- extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" },
|
||||
-- },
|
||||
formatting.black.with { extra_args = { "--fast" } },
|
||||
formatting.stylua,
|
||||
formatting.google_java_format,
|
||||
|
|
Loading…
Reference in a new issue