Skip to content

Commit

Permalink
nvim config
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesquembre committed Jun 18, 2024
1 parent 5e4b1a5 commit 5c5419f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions dotfiles/neovim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,6 @@ inoremap <F10> <nop>
inoremap <F11> <nop>
inoremap <F12> <nop>
" move vertically by visual line
" nnoremap j gj
" nnoremap k gk

" tab map
nnoremap <leader>gn :tabnew<cr>
Expand Down
3 changes: 3 additions & 0 deletions dotfiles/neovim/myconfig.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
(vim.keymap.set "n" "<leader>s" "<cmd>update<cr>" {:silent true})
(vim.keymap.set "i" "<C-s>" "<C-o>:w<cr>")

;; move vertically by visual line
(vim.keymap.set "n" "j" "gj")
(vim.keymap.set "n" "k" "gk")

; Move visual selection UP/DOWN
(vim.keymap.set "v" "J" ":m '>+1<CR>gv=gv")
Expand Down
6 changes: 3 additions & 3 deletions dotfiles/neovim/user.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ augroup END
)

require("nterm.main").init()
vim.api.nvim_set_keymap("t", "<C-e>", [[<cmd>lua require'nterm.main'.term_toggle()<cr>]], { noremap = true })
vim.keymap.set("t", "<C-e>", [[<cmd>lua require'nterm.main'.term_toggle()<cr>]], { remap = false })

require("nvim-autopairs").setup({
disable_filetype = { "TelescopePrompt", unpack(require("jlle.conjure").lisp_langs) },
Expand Down Expand Up @@ -149,9 +149,9 @@ function _G.new_scratch()
vim.wo.winfixwidth = true
end

vim.api.nvim_set_keymap("n", "<leader>es", "<cmd>lua new_scratch()<cr>", { noremap = true, silent = false })
vim.keymap.set("n", "<leader>es", "<cmd>lua new_scratch()<cr>", { remap = false, silent = false })

vim.api.nvim_set_keymap("n", "<leader>x", "<cmd>lua toggle_qf()<cr>", { noremap = true, silent = false })
vim.keymap.set("n", "<leader>x", "<cmd>lua toggle_qf()<cr>", { remap = false, silent = false })

require("package-info").setup({ package_manager = "npm" })
vim.api.nvim_exec(
Expand Down

0 comments on commit 5c5419f

Please sign in to comment.