Compare commits
No commits in common. "f99bc2ac10930b1743612b94c2f2499c5dbcdfaa" and "557d8422ea78bf7f5044f6822715606903c517d0" have entirely different histories.
f99bc2ac10
...
557d8422ea
12 changed files with 132 additions and 0 deletions
1
.config/kak/plugins/fzf.kak
Submodule
1
.config/kak/plugins/fzf.kak
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 62a3de575cceeaf9f556b824123a418def8bea7b
|
92
.config/nvim/init.vim
Normal file
92
.config/nvim/init.vim
Normal file
|
@ -0,0 +1,92 @@
|
|||
set mouse=a " Enable mouse
|
||||
set linebreak " Wrap words
|
||||
set hidden " Do not save when switching buffers
|
||||
set inccommand=nosplit " Incremental live completion
|
||||
set tabstop=4 shiftwidth=4 " 4 space \t
|
||||
|
||||
set relativenumber cursorline cursorlineopt=number lazyredraw
|
||||
|
||||
set ignorecase smartcase
|
||||
|
||||
set updatetime=250
|
||||
|
||||
set termguicolors
|
||||
colorscheme paige
|
||||
highlight! Comment guifg=#474747 guibg=#ffffff
|
||||
highlight! htmlComment guifg=#474747 guibg=#ffffff
|
||||
highlight! htmlCommentPart guifg=#474747 guibg=#ffffff
|
||||
highlight! gitcommitComment guifg=#474747 guibg=#ffffff
|
||||
|
||||
highlight! CursorLineNr ctermfg=232 ctermbg=254 gui=bold guifg=#080808 guibg=#cccccc
|
||||
|
||||
set completeopt=menu,menuone,noselect
|
||||
|
||||
lua << EOF
|
||||
local nvim_lsp = require('lspconfig')
|
||||
|
||||
-- Use an on_attach function to only map the following keys
|
||||
-- after the language server attaches to the current buffer
|
||||
local on_attach = function(client, bufnr)
|
||||
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
||||
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
||||
|
||||
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
|
||||
local opts = { noremap=true, silent=true }
|
||||
buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
|
||||
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
||||
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
||||
buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
||||
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
||||
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
||||
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
||||
buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
|
||||
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||
end
|
||||
|
||||
local servers = { 'zls', 'gopls' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
nvim_lsp[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
}
|
||||
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,
|
||||
svelte = prettier, -- necesita https://github.com/sveltejs/prettier-plugin-svelte
|
||||
}
|
||||
})
|
||||
EOF
|
||||
|
||||
augroup FormatAutogroup
|
||||
autocmd!
|
||||
autocmd BufWritePost *.js,*.ts,*.html,*.css,*.scss,*.sass FormatWrite
|
||||
autocmd BufWritePost *.svelte FormatWrite " necesita https://github.com/sveltejs/prettier-plugin-svelte
|
||||
augroup END
|
||||
|
||||
let g:fzf_layout = { 'down': '40%' }
|
||||
|
||||
noremap <space>f :Files<return>
|
||||
noremap <space>b :Buffers<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
|
1
.config/nvim/pack/plugins/start/fzf.vim
Submodule
1
.config/nvim/pack/plugins/start/fzf.vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1f7bfa4007043c30027b2cd79625e8aac5cff1f9
|
1
.config/nvim/pack/plugins/start/nvim-lspconfig
Submodule
1
.config/nvim/pack/plugins/start/nvim-lspconfig
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 531751ef03d77bf094f1fc07844b6c03ec4862bb
|
1
.config/nvim/pack/plugins/start/paige
Submodule
1
.config/nvim/pack/plugins/start/paige
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0d72c3814da3cc01d4435deaa6168fa913c694fd
|
1
.config/nvim/pack/plugins/start/vim-commentary
Submodule
1
.config/nvim/pack/plugins/start/vim-commentary
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 627308e30639be3e2d5402808ce18690557e8292
|
1
.config/nvim/pack/plugins/start/vim-go
Submodule
1
.config/nvim/pack/plugins/start/vim-go
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 430bc227654abc3eb5e27a9052a857344ca08cdc
|
1
.config/nvim/pack/plugins/start/vim-sleuth
Submodule
1
.config/nvim/pack/plugins/start/vim-sleuth
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 65ade2453342062010386e226eaa754889e2b557
|
1
.config/nvim/pack/plugins/start/vim-svelte
Submodule
1
.config/nvim/pack/plugins/start/vim-svelte
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 3a37f2a2414fa4c20c70e67e978977c1e2a43187
|
1
.config/nvim/pack/plugins/start/zig.vim
Submodule
1
.config/nvim/pack/plugins/start/zig.vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0762d89c24f5a1da6bf26ca83f3719c379008ff9
|
30
.gitmodules
vendored
30
.gitmodules
vendored
|
@ -1,9 +1,39 @@
|
|||
[submodule ".config/nvim/pack/plugins/start/nvim-lspconfig"]
|
||||
path = .config/nvim/pack/plugins/start/nvim-lspconfig
|
||||
url = https://github.com/neovim/nvim-lspconfig
|
||||
[submodule ".config/nvim/pack/plugins/start/vim-commentary"]
|
||||
path = .config/nvim/pack/plugins/start/vim-commentary
|
||||
url = https://tpope.io/vim/commentary.git
|
||||
[submodule ".config/nvim/pack/plugins/start/vim-sleuth"]
|
||||
path = .config/nvim/pack/plugins/start/vim-sleuth
|
||||
url = https://github.com/tpope/vim-sleuth
|
||||
[submodule ".config/nvim/pack/plugins/start/zig.vim"]
|
||||
path = .config/nvim/pack/plugins/start/zig.vim
|
||||
url = https://github.com/ziglang/zig.vim
|
||||
[submodule ".config/nvim/pack/plugins/start/fzf.vim"]
|
||||
path = .config/nvim/pack/plugins/start/fzf.vim
|
||||
url = https://github.com/junegunn/fzf.vim
|
||||
[submodule ".config/nvim/pack/plugins/start/vim-go"]
|
||||
path = .config/nvim/pack/plugins/start/vim-go
|
||||
url = https://github.com/fatih/vim-go
|
||||
[submodule ".config/nvim/pack/plugins/start/formatter.nvim"]
|
||||
path = .config/nvim/pack/plugins/start/formatter.nvim
|
||||
url = https://github.com/mhartington/formatter.nvim
|
||||
[submodule ".config/nvim/pack/plugins/start/vim-svelte"]
|
||||
path = .config/nvim/pack/plugins/start/vim-svelte
|
||||
url = https://github.com/evanleck/vim-svelte
|
||||
[submodule ".config/nvim/pack/plugins/start/paige"]
|
||||
path = .config/nvim/pack/plugins/start/paige
|
||||
url = https://git.sr.ht/~leon_plickat/paige
|
||||
[submodule ".config/kak/plugins/smarttab.kak"]
|
||||
path = .config/kak/plugins/smarttab.kak
|
||||
url = https://github.com/andreyorst/smarttab.kak
|
||||
[submodule ".config/kak/plugins/zig.kak"]
|
||||
path = .config/kak/plugins/zig.kak
|
||||
url = https://gitea.nulo.in/Nulo/zig.kak
|
||||
[submodule ".config/kak/plugins/fzf.kak"]
|
||||
path = .config/kak/plugins/fzf.kak
|
||||
url = https://gitea.nulo.in/Nulo/fzf.kak
|
||||
[submodule ".config/kak/plugins/kakoune-buffers"]
|
||||
path = .config/kak/plugins/kakoune-buffers
|
||||
url = https://github.com/Delapouite/kakoune-buffers
|
||||
|
|
Loading…
Reference in a new issue