Skip to content

Commit

Permalink
Merge pull request #8 from ntsk/mason
Browse files Browse the repository at this point in the history
nvim-lsp-installer -> mason.nvim 他
  • Loading branch information
ntsk authored Apr 2, 2024
2 parents ca565b6 + 9921b79 commit d81ee22
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
23 changes: 2 additions & 21 deletions nvim/dein/lazy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repo = 'Shougo/ddc.vim'
on_event = 'InsertEnter'
depends = ['denops.vim']
hook_source = '''
call ddc#custom#patch_global('sources', ['nvim-lsp', 'around'])
call ddc#custom#patch_global('sources', ['lsp', 'around'])
call ddc#custom#patch_global('sourceOptions', {
\ '_': {
\ 'matchers': ['matcher_head'],
Expand All @@ -27,7 +27,7 @@ repo = 'Shougo/ddc-around'
on_source = 'ddc.vim'

[[plugins]]
repo = 'Shougo/ddc-nvim-lsp'
repo = 'Shougo/ddc-source-lsp'
on_source = 'ddc.vim'

[[plugins]]
Expand All @@ -39,22 +39,3 @@ repo = 'Shougo/ddc-sorter_rank'
on_source = 'ddc.vim'


# lsp
[[plugins]]
repo = 'neovim/nvim-lspconfig'
on_event = 'BufEnter'
hook_source= '''
lua << EOF
local lsp_installer = require("nvim-lsp-installer")
lsp_installer.on_server_ready(function(server)
local opts = {}
server:setup(opts)
vim.cmd [[ do User LspAttachBuffers ]]
end)
EOF
'''

[[plugins]]
repo = 'williamboman/nvim-lsp-installer'
on_source = 'nvim-lspconfig'

10 changes: 10 additions & 0 deletions nvim/dein/plugins.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,13 @@ hook_add = '''
[[plugins]]
repo = 'vim-denops/denops.vim'

# Lsp
[[plugins]]
repo = 'neovim/nvim-lspconfig'

[[plugins]]
repo = 'williamboman/mason.nvim'

[[plugins]]
repo = 'williamboman/mason-lspconfig.nvim'

13 changes: 13 additions & 0 deletions nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,16 @@ colorscheme molokai
nnoremap <silent><C-e> :NERDTreeToggle<CR>
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" Lsp
lua << EOF
require("mason").setup()
require("mason-lspconfig").setup()
require("mason-lspconfig").setup_handlers {
function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup {
on_attach = on_attach,
}
end
}
EOF
3 changes: 0 additions & 3 deletions zsh/rc/path.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export PATH="$HOME/.poetry/bin:$PATH"
export PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)"

# gcloud required python2
export CLOUDSDK_PYTHON=/Users/$USER/.pyenv/versions/2.7.15/bin/python2

# imagemagick
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"

Expand Down

0 comments on commit d81ee22

Please sign in to comment.