vim is shitware

This commit is contained in:
Imbus 2022-12-15 21:41:24 +01:00
parent 66eab26125
commit 30b6a57ee4
3 changed files with 62 additions and 23 deletions

View file

@ -1,6 +1,7 @@
local packer = require("ensure-packer");
local plugins = require("plugins");
local settings = require("settings");
--local telescope = require("telescope");
-- Theme Section
vim.cmd("colorscheme onedark")
@ -13,9 +14,13 @@ require('lualine').setup {
-- Comment
require('Comment').setup()
-- Gitsigns
require('gitsigns').setup()
--require('telescope').setup()
--require('telescope').setup {}
-- Mason
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = { "rust_analyzer", "pylsp" },
automatic_installation = true,
})
-- require("mason").setup()
-- require("mason-lspconfig").setup({
-- ensure_installed = { "rust_analyzer", "pylsp" },
-- automatic_installation = true,
-- })

View file

@ -1,22 +1,56 @@
require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'neovim/lsp'
use 'neovim/nvim-lspconfig'
use { 'nvim-treesitter/nvim-treesitter', run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
}
use 'williamboman/mason.nvim'
use 'williamboman/mason-lspconfig.nvim'
use 'hrsh7th/nvim-cmp'
use 'hrsh7th/cmp-nvim-lsp'
use { 'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } }
use 'gpanders/editorconfig.nvim'
use 'navarasu/onedark.nvim'
use 'lewis6991/gitsigns.nvim'
use 'numToStr/Comment.nvim'
use {
'nvim-lualine/lualine.nvim',
requires = {
'kyazdani42/nvim-web-devicons',
opt = true
}
}
-- use {
-- 'VonHeikemen/lsp-zero.nvim',
-- requires = {
-- -- LSP Support
-- {'neovim/nvim-lspconfig'},
-- {'williamboman/mason.nvim'},
-- {'williamboman/mason-lspconfig.nvim'},
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
-- -- Autocompletion
-- {'hrsh7th/nvim-cmp'},
-- {'hrsh7th/cmp-buffer'},
-- {'hrsh7th/cmp-path'},
-- {'saadparwaiz1/cmp_luasnip'},
-- {'hrsh7th/cmp-nvim-lsp'},
-- {'hrsh7th/cmp-nvim-lua'},
-- -- Snippets
-- {'L3MON4D3/LuaSnip'},
-- {'rafamadriz/friendly-snippets'},
-- }
-- }
-- use 'neovim/lsp'
-- use 'neovim/nvim-lspconfig'
-- use {
-- 'nvim-treesitter/nvim-treesitter',
-- run = function()
-- local ts_update = require('nvim-treesitter.install').update({
-- with_sync = true
-- })
-- ts_update()
-- end
-- }
-- use 'williamboman/mason.nvim'
-- use 'williamboman/mason-lspconfig.nvim'
-- use 'hrsh7th/nvim-cmp'
-- use 'hrsh7th/cmp-nvim-lsp'
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end)

View file

@ -28,7 +28,7 @@ o.tabstop = 4
o.shiftwidth = 0
o.softtabstop = -1 -- If negative, shiftwidth value is used
o.list = true
o.listchars = 'eol:¬,space:·,lead: ,trail:·,nbsp:◇,tab:→-,extends:▸,precedes:◂,multispace:···⬝,leadmultispace:│ ,'
-- o.listchars = 'eol:¬,space:·,lead: ,trail:·,nbsp:◇,tab:→-,extends:▸,precedes:◂,multispace:···⬝,leadmultispace:│ ,'
-- o.formatoptions = 'qrn1'
-- Makes neovim and host OS clipboard play nicely with each other