diff --git a/.config/nvim/ftplugin/python.lua b/.config/nvim/ftplugin/python.lua new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 7e8c213..b2f98c2 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,54 +1,30 @@ -local o = vim.o -local wo = vim.wo -local bo = vim.bo --- GLOBAL SETTINGS -o.termguicolors = true +require("plugins") +require("keybinds") +-- GENERAL SETTINGS +vim.o.termguicolors = true vim.cmd('colorscheme monokai') -- set colorscheme -o.syntax = 'on' -o.errorbells = false -o.smartcase = true -o.showmode = true -bo.swapfile = false -o.backup = false -o.undodir = vim.fn.stdpath('config') .. '/undodir' -o.undofile = true -o.incsearch = true -o.hidden = true -o.completeopt='menuone,noinsert,noselect' -bo.autoindent = true -bo.smartindent = true -o.tabstop = 2 -o.softtabstop = 2 -o.shiftwidth = 2 -o.expandtab = true -wo.number = true -wo.relativenumber = true -o.scrolloff = 8 -wo.signcolumn = 'yes' -wo.wrap = false +vim.o.syntax = 'on' +vim.o.errorbells = false +vim.o.smartcase = true +vim.o.showmode = true +vim.o.ignorecase = true -- case-insensitive search +vim.bo.swapfile = false +vim.o.backup = false +vim.o.undodir = vim.fn.stdpath('config') .. '/undodir' +vim.o.undofile = true +vim.o.incsearch = true +vim.o.hidden = true +vim.o.completeopt='menuone,noinsert,noselect' +vim.bo.autoindent = true +vim.bo.smartindent = true +vim.o.tabstop = 2 +vim.o.softtabstop = 2 +vim.o.shiftwidth = 2 +vim.o.expandtab = true +vim.wo.number = true +vim.wo.relativenumber = true +vim.o.scrolloff = 8 +vim.wo.signcolumn = 'yes' +vim.wo.wrap = false +vim.opt.cursorline = true --- KEYBINDS --- --- INSTALL PACKER https://github.com/wbthomason/packer.nvim#bootstrapping -local vim = vim -local execute = vim.api.nvim_command -local fn = vim.fn --- ensure that packer is installed -local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim' -if fn.empty(fn.glob(install_path)) > 0 then - execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path) - execute 'packadd packer.nvim' -end -vim.cmd('packadd packer.nvim') -local packer = require'packer' -local util = require'packer.util' -packer.init({ - package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack') -}) ---- startup and add configure plugins -packer.startup(function() - local use = use - -- add you plugins here like: - use 'neovim/nvim-lspconfig' - end -) diff --git a/.config/nvim/lua/keybinds.lua b/.config/nvim/lua/keybinds.lua new file mode 100644 index 0000000..85c1b6c --- /dev/null +++ b/.config/nvim/lua/keybinds.lua @@ -0,0 +1 @@ +-- filetype-specific keybinds can be found in the ftplugin folder, requires 'filetype plugin on' diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua new file mode 100644 index 0000000..78ac519 --- /dev/null +++ b/.config/nvim/lua/plugins.lua @@ -0,0 +1,32 @@ +-- INSTALL PACKER PLUGINS https://github.com/wbthomason/packer.nvim#bootstrapping +local vim = vim +local execute = vim.api.nvim_command +local fn = vim.fn +local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim' +if fn.empty(fn.glob(install_path)) > 0 then + execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path) + execute 'packadd packer.nvim' +end +vim.cmd('packadd packer.nvim') +local packer = require'packer' +local util = require'packer.util' +packer.init({ + package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack') +}) +--- startup and add configure plugins +packer.startup(function() + local use = use + use 'neovim/nvim-lspconfig' + use 'nvim-treesitter/nvim-treesitter' + end +) +--[[ PLUGIN CONFIGURATION +local configs = require'nvim-treesitter.configs' +configs.setup { + ensure_installed = "maintained", + highlight = { + enable = true, + } +} +]]-- +