Nvim Tmux navigation
This commit is contained in:
parent
bab4e04c11
commit
00d2f2fcf5
|
@ -16,6 +16,7 @@ vim.keymap.set("n", "N", "Nzzzv")
|
|||
-- greatest remap ever
|
||||
-- paste without adding deleted text to buffer
|
||||
vim.keymap.set("x", "<leader>p", [["_dP]])
|
||||
vim.keymap.set("x", "<leader>d", [["_d]])
|
||||
|
||||
-- next greatest remap ever : asbjornHaland
|
||||
-- yank/delete into system clipboard
|
||||
|
@ -35,4 +36,4 @@ vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
|
|||
-- find/replace word you're on
|
||||
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
||||
-- make script executable
|
||||
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
|
||||
vim.keymap.set("n", "<leader>+", "<cmd>!chmod +x %<CR>", { silent = true })
|
||||
|
|
|
@ -35,6 +35,8 @@ return {
|
|||
group = vim.api.nvim_create_augroup('kickstart-lsp-attach-format', { clear = true }),
|
||||
-- This is where we attach the autoformatting for reasonable clients
|
||||
callback = function(args)
|
||||
-- dont reformat anything
|
||||
if true then return end
|
||||
local client_id = args.data.client_id
|
||||
local client = vim.lsp.get_client_by_id(client_id)
|
||||
local bufnr = args.buf
|
||||
|
@ -46,7 +48,7 @@ return {
|
|||
|
||||
-- Tsserver usually works poorly. Sorry you work with bad languages
|
||||
-- You can remove this line if you know what you're doing :)
|
||||
if client.name == 'tsserver' or client.name == 'jsonls' then
|
||||
if client.name == 'tsserver' or client.name == 'jsonls' or client.name == 'html' then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
lazy = false,
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue