mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-30 15:44:37 +02:00
udpates
This commit is contained in:
parent
cf90bd89f2
commit
cd05394d91
4 changed files with 36 additions and 6 deletions
|
@ -48,9 +48,10 @@ $HOME/.config/nvim/lua/nv-vscode/init.vim
|
|||
- toggle virtual text diagnostics
|
||||
- improve VSCode support
|
||||
- formatting using efm server for python
|
||||
- formatting using efm server for prettier/eslint
|
||||
|
||||
**LOW PRIORITY**
|
||||
- redo barbar highligh groups
|
||||
- redo barbar highlight groups
|
||||
- wrap all whichkey lsp in functions
|
||||
- make java code actions prettier
|
||||
- figure out how to format java
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
|
||||
-- local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
-- capabilities.textDocument.completion.completionItem.snippetSupport = true;
|
||||
local on_attach_common = function(client)
|
||||
print("LSP Initialized")
|
||||
-- require'completion'.on_attach(client)
|
||||
require'illuminate'.on_attach(client)
|
||||
end
|
||||
|
||||
require'lspconfig'.tsserver.setup{
|
||||
-- capabilities = capabilities,
|
||||
on_attach = function(client)
|
||||
on_attach_common(client)
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -1,6 +1,19 @@
|
|||
-- TODO bring back when kommentary works for React
|
||||
vim.g.kommentary_create_default_mappings = false
|
||||
vim.api.nvim_set_keymap("n", "<leader>/", "<Plug>kommentary_line_default", {})
|
||||
vim.api.nvim_set_keymap("v", "<leader>/", "<Plug>kommentary_visual_default", {})
|
||||
|
||||
require('kommentary.config').configure_language("default", {
|
||||
prefer_single_line_comments = true,
|
||||
})
|
||||
|
||||
-- require('kommentary.config').configure_language("python", {
|
||||
-- prefer_single_line_comments = true,
|
||||
-- })
|
||||
|
||||
require('kommentary.config').configure_language("javascriptreact", {
|
||||
prefer_multi_line_comments = true,
|
||||
-- single_line_comment_string = "{/*\\ %s\\ */}",
|
||||
multi_line_comment_strings = {"{/*", "*/}"},
|
||||
})
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
local execute = vim.api.nvim_command
|
||||
local fn = vim.fn
|
||||
|
||||
|
@ -14,7 +17,7 @@ end
|
|||
|
||||
return require('packer').startup(function()
|
||||
-- Packer can manage itself as an optional plugin
|
||||
use {'wbthomason/packer.nvim'}
|
||||
use {'wbthomason/packer.nvim', opt = true}
|
||||
|
||||
-- Information
|
||||
use 'nanotee/nvim-lua-guide'
|
||||
|
@ -35,10 +38,12 @@ return require('packer').startup(function()
|
|||
-- Autocomplete
|
||||
use 'hrsh7th/nvim-compe'
|
||||
use 'hrsh7th/vim-vsnip'
|
||||
use 'honza/vim-snippets'
|
||||
use 'hrsh7th/vim-vsnip-integ'
|
||||
-- use 'honza/vim-snippets'
|
||||
-- use 'epilande/vim-react-snippets'
|
||||
-- use 'xabikos/vscode-javascript'
|
||||
-- use 'cstrap/python-snippets'
|
||||
-- use 'ylcnfrht/vscode-python-snippet-pack'
|
||||
-- use 'xabikos/vscode-javascript'
|
||||
-- use 'golang/vscode-go'
|
||||
-- use 'rust-lang/vscode-rust'
|
||||
-- use 'SirVer/ultisnips'
|
||||
|
@ -89,7 +94,6 @@ return require('packer').startup(function()
|
|||
use 'kevinhwang91/nvim-bqf'
|
||||
use 'unblevable/quick-scope'
|
||||
use 'airblade/vim-rooter'
|
||||
use 'b3nj5m1n/kommentary'
|
||||
use 'kevinhwang91/rnvimr'
|
||||
use 'mhinz/vim-startify'
|
||||
use 'metakirby5/codi.vim'
|
||||
|
@ -106,5 +110,9 @@ return require('packer').startup(function()
|
|||
use 'phaazon/hop.nvim'
|
||||
use 'liuchengxu/vista.vim'
|
||||
use { 'npxbr/glow.nvim', run = ':GlowInstall' }
|
||||
-- figure out how to disable or configure for things with tags like <div></div> because it will highlight all divs
|
||||
use 'RRethy/vim-illuminate'
|
||||
-- use 'tpope/vim-commentary'
|
||||
-- use 'suy/vim-context-commentstring'
|
||||
use 'b3nj5m1n/kommentary'
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue