settings
This commit is contained in:
parent
c109029807
commit
d6669e66b2
4 changed files with 47 additions and 21 deletions
1
bashrc
1
bashrc
|
|
@ -23,6 +23,7 @@ unset SSH_ASKPASS
|
||||||
export PYTHONSTARTUP=.python_startup.py
|
export PYTHONSTARTUP=.python_startup.py
|
||||||
eval "$(~/.rbenv/bin/rbenv init - bash)"
|
eval "$(~/.rbenv/bin/rbenv init - bash)"
|
||||||
alias nvim=nvim_listen.sh
|
alias nvim=nvim_listen.sh
|
||||||
|
alias nvim=nvr
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export TERM='xterm-256color'
|
export TERM='xterm-256color'
|
||||||
|
|
|
||||||
1
extensions.json
Normal file
1
extensions.json
Normal file
File diff suppressed because one or more lines are too long
53
init.lua
53
init.lua
|
|
@ -1,15 +1,3 @@
|
||||||
vim.g.mapleader = " "
|
|
||||||
vim.opt.termguicolors = true
|
|
||||||
vim.opt.cursorline = true
|
|
||||||
vim.o.background = "dark"
|
|
||||||
vim.opt.updatetime = 1000
|
|
||||||
vim.opt.signcolumn = "yes"
|
|
||||||
vim.opt.colorcolumn = "80"
|
|
||||||
vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
vim.wo.number = true
|
|
||||||
vim.opt.shortmess:append("sI")
|
|
||||||
|
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
|
|
@ -21,8 +9,29 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
if vim.g.vscode then
|
||||||
|
require("lazy").setup({
|
||||||
|
"terrortylor/nvim-comment",
|
||||||
|
})
|
||||||
|
require("nvim_comment").setup()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
vim.o.background = "dark"
|
||||||
|
vim.opt.updatetime = 1000
|
||||||
|
vim.opt.signcolumn = "yes"
|
||||||
|
vim.opt.colorcolumn = "80"
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
vim.wo.number = true
|
||||||
|
vim.opt.shortmess:append("sI")
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||||
{
|
{
|
||||||
|
|
@ -70,18 +79,13 @@ require("lazy").setup({
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons' }
|
dependencies = { 'nvim-tree/nvim-web-devicons' }
|
||||||
},
|
},
|
||||||
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
|
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
|
||||||
})
|
{ "rcarriga/nvim-dap-ui", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" } }
|
||||||
|
|
||||||
require("neodev").setup({
|
|
||||||
override = function(_, library)
|
|
||||||
library.enabled = true
|
|
||||||
library.plugins = true
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd.colorscheme "catppuccin-mocha"
|
vim.cmd.colorscheme "catppuccin-mocha"
|
||||||
|
|
||||||
|
require("dapui").setup()
|
||||||
require('lualine').setup({})
|
require('lualine').setup({})
|
||||||
|
|
||||||
require 'nvim-treesitter.configs'.setup({
|
require 'nvim-treesitter.configs'.setup({
|
||||||
|
|
@ -123,8 +127,15 @@ cmp.setup({
|
||||||
|
|
||||||
require("nvim_comment").setup()
|
require("nvim_comment").setup()
|
||||||
|
|
||||||
require("lspconfig").pyright.setup({})
|
require("neodev").setup({
|
||||||
|
override = function(_, library)
|
||||||
|
library.enabled = true
|
||||||
|
library.plugins = true
|
||||||
|
end,
|
||||||
|
})
|
||||||
require('lspconfig').lua_ls.setup({})
|
require('lspconfig').lua_ls.setup({})
|
||||||
|
|
||||||
|
require("lspconfig").pyright.setup({})
|
||||||
require("lspconfig").rust_analyzer.setup({})
|
require("lspconfig").rust_analyzer.setup({})
|
||||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
|
||||||
13
settings.json
Normal file
13
settings.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"extensions.experimental.affinity": {
|
||||||
|
"asvetliakov.vscode-neovim": 1
|
||||||
|
},
|
||||||
|
"keyboard.dispatch": "keyCode",
|
||||||
|
"workbench.colorTheme": "Catppuccin Mocha",
|
||||||
|
"editor.fontFamily": "FiraCode Nerd Font",
|
||||||
|
"editor.fontLigatures": true,
|
||||||
|
"workbench.productIconTheme": "material-product-icons",
|
||||||
|
"workbench.iconTheme": "catppuccin-mocha",
|
||||||
|
"editor.inlayHints.enabled": "offUnlessPressed",
|
||||||
|
"rust-analyzer.lens.implementations.enable": false
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue