Merge branch 'master' of gitea.suda.codes:sudacode/nvim
This commit is contained in:
commit
a66bbd7c75
2
init.vim
2
init.vim
@ -32,7 +32,9 @@ source ~/.config/nvim/plugin-confs/lspconfig.lua
|
|||||||
source ~/.config/nvim/plugin-confs/lsplines.lua
|
source ~/.config/nvim/plugin-confs/lsplines.lua
|
||||||
source ~/.config/nvim/plugin-confs/null-ls.lua
|
source ~/.config/nvim/plugin-confs/null-ls.lua
|
||||||
source ~/.config/nvim/plugin-confs/nvim-cmp.lua
|
source ~/.config/nvim/plugin-confs/nvim-cmp.lua
|
||||||
|
source ~/.config/nvim/plugin-confs/luasnip.lua
|
||||||
source ~/.config/nvim/plugin-confs/fidget.lua
|
source ~/.config/nvim/plugin-confs/fidget.lua
|
||||||
|
source ~/.config/nvim/plugin-confs/rainbow-delimiters.lua
|
||||||
" source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
" source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
||||||
" source ~/.config/nvim/plugin-confs/chatgpt.lua
|
" source ~/.config/nvim/plugin-confs/chatgpt.lua
|
||||||
source ~/.config/nvim/plugin-confs/nvim-colorizer.lua
|
source ~/.config/nvim/plugin-confs/nvim-colorizer.lua
|
||||||
|
@ -228,10 +228,14 @@ require('packer').startup(function(use)
|
|||||||
"iamcco/markdown-preview.nvim",
|
"iamcco/markdown-preview.nvim",
|
||||||
run = function() vim.fn["mkdp#util#install"]() end
|
run = function() vim.fn["mkdp#util#install"]() end
|
||||||
})
|
})
|
||||||
|
use {
|
||||||
use 'L3MON4D3/LuaSnip'
|
"L3MON4D3/LuaSnip",
|
||||||
use 'folke/neodev.nvim'
|
-- tag = "v2.*",
|
||||||
use 'saadparwaiz1/cmp_luasnip'
|
run = "make install_jsregexp",
|
||||||
|
dependencies = { "rafamadriz/friendly-snippets" }
|
||||||
|
}
|
||||||
|
use { 'folke/neodev.nvim' }
|
||||||
|
use { 'saadparwaiz1/cmp_luasnip' }
|
||||||
use { 'hrsh7th/cmp-buffer' }
|
use { 'hrsh7th/cmp-buffer' }
|
||||||
use { 'hrsh7th/cmp-cmdline' }
|
use { 'hrsh7th/cmp-cmdline' }
|
||||||
use { 'hrsh7th/cmp-nvim-lsp' }
|
use { 'hrsh7th/cmp-nvim-lsp' }
|
||||||
@ -293,6 +297,7 @@ require('packer').startup(function(use)
|
|||||||
use { 'lewis6991/gitsigns.nvim' }
|
use { 'lewis6991/gitsigns.nvim' }
|
||||||
use { 'rcarriga/nvim-notify' }
|
use { 'rcarriga/nvim-notify' }
|
||||||
use { 'stevearc/dressing.nvim' }
|
use { 'stevearc/dressing.nvim' }
|
||||||
|
use { 'HiPhish/rainbow-delimiters.nvim' }
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ local on_attach = function(client, bufnr)
|
|||||||
-- end
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#1f2335]]
|
-- vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#1f2335]]
|
||||||
vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]]
|
-- vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]]
|
||||||
|
|
||||||
-- squared corners
|
-- squared corners
|
||||||
|
|
||||||
|
1
plugin-confs/luasnip.lua
Normal file
1
plugin-confs/luasnip.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
require("luasnip.loaders.from_vscode").lazy_load()
|
@ -5,6 +5,7 @@ local lspconfig = require('lspconfig')
|
|||||||
-- luasnip setup
|
-- luasnip setup
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
local highlight = require('cmp.utils.highlight')
|
local highlight = require('cmp.utils.highlight')
|
||||||
|
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
local has_words_before = function()
|
local has_words_before = function()
|
||||||
@ -220,6 +221,7 @@ for _, lsp in ipairs(servers) do
|
|||||||
if lsp == 'lua_ls' then
|
if lsp == 'lua_ls' then
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
-- on_attach = my_custom_on_attach,
|
-- on_attach = my_custom_on_attach,
|
||||||
|
-- on_attach = highlight_symbol_under_cursor(),
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
callSnippet = "Replace"
|
callSnippet = "Replace"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
require("notify").setup({
|
require("notify").setup({
|
||||||
background_colour = "NotifyBackground",
|
background_colour = "#000000",
|
||||||
fps = 144,
|
fps = 144,
|
||||||
icons = {
|
icons = {
|
||||||
DEBUG = "",
|
DEBUG = "",
|
||||||
|
15
plugin-confs/rainbow-delimiters.lua
Normal file
15
plugin-confs/rainbow-delimiters.lua
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
-- This module contains a number of default definitions
|
||||||
|
local rainbow_delimiters = require 'rainbow-delimiters'
|
||||||
|
|
||||||
|
vim.g.rainbow_delimiters = {
|
||||||
|
strategy = {
|
||||||
|
[''] = rainbow_delimiters.strategy['global'],
|
||||||
|
vim = rainbow_delimiters.strategy['local']
|
||||||
|
},
|
||||||
|
query = { [''] = 'rainbow-delimiters', lua = 'rainbow-blocks' },
|
||||||
|
highlight = {
|
||||||
|
'RainbowDelimiterRed', 'RainbowDelimiterYellow', 'RainbowDelimiterBlue',
|
||||||
|
'RainbowDelimiterOrange', 'RainbowDelimiterGreen',
|
||||||
|
'RainbowDelimiterViolet', 'RainbowDelimiterCyan'
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user