init mac setup

This commit is contained in:
Adam Jeniski
2022-11-04 16:24:38 -04:00
parent e035f71725
commit 3fa9216bef
7 changed files with 143 additions and 3160 deletions
+15 -1
View File
@@ -41,6 +41,7 @@ Plug 'glepnir/dashboard-nvim'
Plug 'kshenoy/vim-signature'
Plug 'phaazon/hop.nvim'
Plug 'terrortylor/nvim-comment'
Plug 'dense-analysis/ale' -- async runtime for formatting
-- Git Integration
Plug 'airblade/vim-gitgutter'
@@ -116,7 +117,7 @@ require('nvim_comment').setup()
-- setup dashboard
local home = os.getenv('HOME')
local db = require('dashboard')
db.preview_command = 'cat | lolcat -v 2'
db.preview_command = 'cat | lolcat -F .2'
db.preview_file_path = home .. '/.config/nvim/static/neovim.bold'
db.preview_file_height = 12
db.preview_file_width = 80
@@ -430,6 +431,19 @@ dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close {}
end
-- formatting
vim.cmd[[let g:ale_fixers = {
\ 'javascript': ['prettier'],
\ 'typescript': ['prettier'],
\ 'css': ['prettier'],
\ 'svelte': ['prettier'],
\}]]
vim.cmd[[let g:ale_linters_explicit = 1]]
vim.cmd[[let g:ale_fix_on_save = 1]]
vim.cmd[[let g:ale_linters_ignore = {
\ 'typescript': ['eslint'],
\}]]
-- keymaps
local loud_opts = { noremap = true }
vim.keymap.set("n", "<c-s>", ":wa<cr>:echo 'File saved.'<cr>", loud_opts)