volar added in neovim conf. added ssh config. updated README

This commit is contained in:
bumpsoo 2024-01-22 21:05:50 +09:00
parent e57565ada6
commit d37f9da4f6
3 changed files with 24 additions and 2 deletions

View file

@ -16,13 +16,30 @@ local config = function()
-- Enable some language servers with the additional
-- completion capabilities offered by nvim-cmp
local servers = { 'gopls', 'erlangls' }
local servers = { 'gopls', 'erlangls', 'tsserver'}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end
lspconfig.volar.setup {
on_attach = on_attach,
capabilities = capabilities,
filetypes = {
'typescript',
'javascript',
'javascriptreact',
'typescriptreact',
'vue',
'json'
},
init_options = {
typescript = {
tsdk = '/usr/lib/node_modules/typescript/lib'
}
}
}
local luasnip = require 'luasnip'
local cmp = require 'cmp'
cmp.setup {

4
.ssh/config Normal file
View file

@ -0,0 +1,4 @@
Host github.com-work
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519-work

View file

@ -1,9 +1,10 @@
### dev configuration for linux
### configurations for terminal
- neovim (.config/nvim/\*)
- git (.gitconfig ~/personal/.gitconfig)
- tmux (.tmux.conf)
- shell (.profile)
- ssh (.ssh)
### neovim plugins