Compare commits
2 commits
e78b379f28
...
6ae0878d41
Author | SHA1 | Date | |
---|---|---|---|
6ae0878d41 | |||
8427185784 |
4 changed files with 31 additions and 0 deletions
|
@ -50,8 +50,33 @@ for _, lsp in ipairs(servers) do
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local prettier = {
|
||||||
|
function()
|
||||||
|
return {
|
||||||
|
exe = "prettier",
|
||||||
|
args = {"--stdin-filepath", vim.fn.fnameescape(vim.api.nvim_buf_get_name(0))},
|
||||||
|
stdin = true
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
require('formatter').setup({
|
||||||
|
filetype = {
|
||||||
|
javascript = prettier,
|
||||||
|
typescript = prettier,
|
||||||
|
html = prettier,
|
||||||
|
css = prettier,
|
||||||
|
scss = prettier,
|
||||||
|
sass = prettier,
|
||||||
|
}
|
||||||
|
})
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
augroup FormatAutogroup
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWritePost *.js,*.ts,*.html,*.css,*.scss,*.sass FormatWrite
|
||||||
|
augroup END
|
||||||
|
|
||||||
let g:fzf_layout = { 'down': '40%' }
|
let g:fzf_layout = { 'down': '40%' }
|
||||||
|
|
||||||
noremap <space>f :Files<return>
|
noremap <space>f :Files<return>
|
||||||
|
|
1
.config/nvim/pack/plugins/start/formatter.nvim
Submodule
1
.config/nvim/pack/plugins/start/formatter.nvim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 0cdce2da8762ee01ee7d8df047b6e569d58c1ba3
|
|
@ -94,6 +94,8 @@ riverctl map normal $mod F11 enter-mode passthrough
|
||||||
|
|
||||||
riverctl map passthrough $mod F11 enter-mode normal
|
riverctl map passthrough $mod F11 enter-mode normal
|
||||||
|
|
||||||
|
riverctl map normal $mod Z spawn 'pamixer --default-source --toggle-mute'
|
||||||
|
|
||||||
for mode in normal locked
|
for mode in normal locked
|
||||||
do
|
do
|
||||||
# https://github.com/cdemoulins/pamixer
|
# https://github.com/cdemoulins/pamixer
|
||||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -22,3 +22,6 @@
|
||||||
[submodule ".config/nvim/pack/plugins/start/fzf"]
|
[submodule ".config/nvim/pack/plugins/start/fzf"]
|
||||||
path = .config/nvim/pack/plugins/start/fzf
|
path = .config/nvim/pack/plugins/start/fzf
|
||||||
url = https://github.com/junegunn/fzf
|
url = https://github.com/junegunn/fzf
|
||||||
|
[submodule ".config/nvim/pack/plugins/start/formatter.nvim"]
|
||||||
|
path = .config/nvim/pack/plugins/start/formatter.nvim
|
||||||
|
url = https://github.com/mhartington/formatter.nvim
|
||||||
|
|
Loading…
Reference in a new issue