Add null-ls, mac settings, zoomwin
This commit is contained in:
@@ -19,6 +19,12 @@ vim.keymap.set('n', '<leader>v', [[<Cmd>:e ~/.config/nvim/init.lua<CR>]], { sile
|
||||
-- URL handling (since I disabled netrw)
|
||||
-- source: https://sbulav.github.io/vim/neovim-opening-urls/
|
||||
if vim.fn.has('mac') == 1 then
|
||||
vim.keymap.set('n', '<D-v>', '"+p')
|
||||
vim.keymap.set('n', '<D-s-v>', '"+p')
|
||||
vim.keymap.set('i', '<D-v>', '<C-r>*')
|
||||
vim.keymap.set('i', '<D-s-v>', '<C-r>*')
|
||||
vim.keymap.set('t', '<D-v>', '<C-\\><C-n>"+pi')
|
||||
vim.keymap.set('t', '<D-s-v>', '<C-\\><C-n>"+pi')
|
||||
vim.keymap.set('', 'gx', [[<Cmd>call jobstart(['open', expand('<cfile>')], { 'detach': v:true })<CR>]], { noremap = true, silent = true })
|
||||
elseif vim.fn.has("unix") == 1 then
|
||||
vim.keymap.set('', 'gx', [[<Cmd>call jobstart(['xdg-open', expand('<cfile>')], { 'detach': v:true })<CR>]], { noremap = true, silent = true })
|
||||
|
||||
@@ -65,5 +65,13 @@ vim.o.shortmess = vim.o.shortmess .. 'c'
|
||||
-- Python
|
||||
vim.g.python3_host_prog = '/usr/bin/python3'
|
||||
|
||||
--Shell
|
||||
vim.opt.shell = 'fish'
|
||||
|
||||
-- Format options
|
||||
vim.cmd([[set formatoptions+=wantrqlc]])
|
||||
|
||||
-- Neovide settings
|
||||
vim.g.neovide_scroll_animation_length = 0.3 -- default: 0.3
|
||||
vim.g.neovide_cursor_animation_length = 0.06
|
||||
vim.g.neovide_cursor_trail_size = 0.2 -- default: 0.8
|
||||
|
||||
Reference in New Issue
Block a user