mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-07 08:53:37 -08:00
update nvim to use packer
This commit is contained in:
119
nvim/lua/plugins.lua
Normal file
119
nvim/lua/plugins.lua
Normal file
@@ -0,0 +1,119 @@
|
||||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
use 'nvim-lua/plenary.nvim'
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = function() require('nvim-treesitter.install').update({ with_sync = true }) end,
|
||||
}
|
||||
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = {'kyazdani42/nvim-web-devicons', opt = true}
|
||||
}
|
||||
|
||||
use {
|
||||
"zbirenbaum/copilot.lua",
|
||||
after = "lualine.nvim",
|
||||
config = function ()
|
||||
vim.defer_fn(function()
|
||||
require('copilot').setup({
|
||||
panel = {
|
||||
enabled = true,
|
||||
auto_refresh = false,
|
||||
keymap = {
|
||||
jump_prev = "[[",
|
||||
jump_next = "]]",
|
||||
accept = "<CR>",
|
||||
refresh = "gr",
|
||||
open = "<M-CR>"
|
||||
},
|
||||
},
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
debounce = 75,
|
||||
keymap = {
|
||||
accept = "<Tab>",
|
||||
next = "<M-]>",
|
||||
prev = "<M-[>",
|
||||
dismiss = "<C-]>",
|
||||
},
|
||||
},
|
||||
filetypes = {
|
||||
yaml = false,
|
||||
markdown = false,
|
||||
help = false,
|
||||
gitcommit = false,
|
||||
gitrebase = false,
|
||||
hgcommit = false,
|
||||
svn = false,
|
||||
cvs = false,
|
||||
["."] = false,
|
||||
},
|
||||
copilot_node_command = 'node', -- Node version must be < 18
|
||||
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer",
|
||||
server_opts_overrides = {},
|
||||
})
|
||||
end, 100)
|
||||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
"zbirenbaum/copilot-cmp",
|
||||
after = { "copilot.lua" },
|
||||
config = function ()
|
||||
require("copilot_cmp").setup({
|
||||
-- method = "getCompletionsCycling",
|
||||
formatters = {
|
||||
insert_text = require("copilot_cmp.format").remove_existing
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
'junegunn/fzf',
|
||||
run = function() vim.fn['fzf#install']() end
|
||||
}
|
||||
|
||||
use 'ap/vim-css-color'
|
||||
use 'jiangmiao/auto-pairs'
|
||||
use 'junegunn/fzf.vim'
|
||||
use 'pechorin/any-jump.vim'
|
||||
use 'tpope/vim-commentary'
|
||||
use 'tpope/vim-surround'
|
||||
use 'voldikss/vim-floaterm'
|
||||
use 'wakatime/vim-wakatime'
|
||||
|
||||
use 'akinsho/nvim-bufferline.lua'
|
||||
use 'andweeb/presence.nvim'
|
||||
use 'folke/which-key.nvim'
|
||||
use 'glepnir/dashboard-nvim'
|
||||
use 'kyazdani42/nvim-tree.lua'
|
||||
use 'kyazdani42/nvim-web-devicons'
|
||||
use 'lewis6991/gitsigns.nvim'
|
||||
use 'nvim-telescope/telescope.nvim'
|
||||
use 'ojroques/nvim-lspfuzzy'
|
||||
|
||||
use 'L3MON4D3/LuaSnip'
|
||||
use 'amrbashir/nvim-docs-view'
|
||||
use 'hrsh7th/cmp-buffer'
|
||||
use 'hrsh7th/cmp-nvim-lsp'
|
||||
use 'hrsh7th/cmp-nvim-lua'
|
||||
use 'hrsh7th/cmp-path'
|
||||
use 'hrsh7th/nvim-cmp'
|
||||
use 'j-hui/fidget.nvim'
|
||||
use 'jose-elias-alvarez/null-ls.nvim'
|
||||
use 'ksyasuda/lsp_lines.nvim'
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'onsails/lspkind-nvim'
|
||||
use 'ray-x/lsp_signature.nvim'
|
||||
use 'rmagatti/goto-preview'
|
||||
use 'saadparwaiz1/cmp_luasnip'
|
||||
use 'williamboman/nvim-lsp-installer'
|
||||
|
||||
use 'Mofiqul/dracula.nvim'
|
||||
use 'NTBBloodbath/doom-one.nvim'
|
||||
use 'olimorris/onedarkpro.nvim'
|
||||
use 'projekt0n/github-nvim-theme'
|
||||
end)
|
||||
40
nvim/lua/settings.lua
Normal file
40
nvim/lua/settings.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
local g = vim.g
|
||||
local o = vim.o
|
||||
local A = vim.api
|
||||
|
||||
g.mapleader = "<Space>"
|
||||
g.maplocalleader = ','
|
||||
o.termguicolors = true
|
||||
o.background = 'dark'
|
||||
o.mouse = 'a'
|
||||
o.syntax = 'on'
|
||||
o.laststatus = 3
|
||||
o.number = true
|
||||
o.relativenumber = true
|
||||
o.colorcolumn = '80'
|
||||
o.textwidth = 80
|
||||
o.shiftwidth = 4
|
||||
o.tabstop = 4
|
||||
o.autoindent = true
|
||||
o.ignorecase = true
|
||||
o.smartcase = true
|
||||
o.incsearch = true
|
||||
o.hlsearch = true
|
||||
o.title = true
|
||||
o.splitright = true
|
||||
o.cursorline = true
|
||||
o.scrolloff = 8
|
||||
o.sidescrolloff = 8
|
||||
o.wildmenu = true
|
||||
o.wildignore= '.git,.hg,.svn,CVS,.DS_Store,.idea,.vscode,.vscode-test,node_modules'
|
||||
o.showmatch = true
|
||||
o.list = true
|
||||
o.listchars = 'tab:»·,trail:·,nbsp:·,extends:>,precedes:<'
|
||||
o.encoding = 'utf-8'
|
||||
o.guifont = 'JetBrainsMono Nerd Font 14'
|
||||
o.expandtab = true
|
||||
o.hidden = true
|
||||
o.cmdheight = 1
|
||||
o.updatetime = 300
|
||||
o.timeoutlen = 500
|
||||
o.pumwidth=35
|
||||
Reference in New Issue
Block a user