Add a few more formatters, run formatting on files
This commit is contained in:
parent
d3ed6bae04
commit
ac62702feb
|
@ -1,7 +1,9 @@
|
||||||
# Personal dotfiles
|
# Personal dotfiles
|
||||||
|
|
||||||
Collection of various settings, configurations and other miscellaneous tools.
|
Collection of various settings, configurations and other miscellaneous tools.
|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
- [neovim](https://neovim.io)
|
- [neovim](https://neovim.io)
|
||||||
- [kitty](https://sw.kovidgoyal.net/kitty/)
|
- [kitty](https://sw.kovidgoyal.net/kitty/)
|
||||||
- [lazygit](https://github.com/jesseduffield/lazygit)
|
- [lazygit](https://github.com/jesseduffield/lazygit)
|
||||||
|
@ -11,9 +13,11 @@ Collection of various settings, configurations and other miscellaneous tools.
|
||||||
- [zsh]() paths and aliases
|
- [zsh]() paths and aliases
|
||||||
|
|
||||||
## Fonts
|
## Fonts
|
||||||
|
|
||||||
- [NerdFonts symbols](https://github.com/ryanoasis/nerd-fonts)
|
- [NerdFonts symbols](https://github.com/ryanoasis/nerd-fonts)
|
||||||
|
|
||||||
## Binaries
|
## Binaries
|
||||||
|
|
||||||
- [EFM LSP]()
|
- [EFM LSP]()
|
||||||
- [Lazygit]()
|
- [Lazygit]()
|
||||||
- [Lua LSP]()
|
- [Lua LSP]()
|
||||||
|
@ -22,11 +26,13 @@ Collection of various settings, configurations and other miscellaneous tools.
|
||||||
- [Treesitter]()
|
- [Treesitter]()
|
||||||
|
|
||||||
## Templates
|
## Templates
|
||||||
|
|
||||||
- SSH config
|
- SSH config
|
||||||
- Python package
|
- Python package
|
||||||
- Crontab
|
- Crontab
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Run `make` to symlink configs and download extras.
|
Run `make` to symlink configs and download extras.
|
||||||
|
|
||||||
`software.sh` (WIP) installs common programs.
|
`software.sh` (WIP) installs common programs.
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# Vim config
|
# Vim config
|
||||||
|
|
||||||
Personal configuration and plugins for Vim
|
Personal configuration and plugins for Vim
|
||||||
|
|
||||||
## Installing neovim AppImage
|
## Installing neovim AppImage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
||||||
chmod u+x nvim.appimage
|
chmod u+x nvim.appimage
|
||||||
|
@ -9,23 +11,29 @@ mv nvim.appimage "$HOME/bin/nvim"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing configuration
|
## Installing configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ln -s /path/to/config/nvim ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
|
ln -s /path/to/config/nvim ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install script
|
### Install script
|
||||||
|
|
||||||
`install.sh` currently handles installing `Packer` and `pynvim`.
|
`install.sh` currently handles installing `Packer` and `pynvim`.
|
||||||
Will also update existing installs if already present.
|
Will also update existing installs if already present.
|
||||||
|
|
||||||
### Installing `Packer` plugin manager
|
### Installing `Packer` plugin manager
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||||
$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim
|
$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||||
```
|
```
|
||||||
|
|
||||||
Plugin definitions are in `plugins.lua`, inside `vim` run `:PackerSync` to install plugins
|
Plugin definitions are in `plugins.lua`, inside `vim` run `:PackerSync` to install plugins
|
||||||
|
|
||||||
## Enabling python support
|
## Enabling python support
|
||||||
|
|
||||||
Set up neovim specific virtual environment to install `pynvim` package:
|
Set up neovim specific virtual environment to install `pynvim` package:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 -m venv "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/venv"
|
python3 -m venv "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/venv"
|
||||||
source "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/venv/bin/activate"
|
source "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/venv/bin/activate"
|
||||||
|
@ -34,6 +42,7 @@ source deactivate
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing language servers using `pipx`
|
### Installing language servers using `pipx`
|
||||||
|
|
||||||
Install [pipx](https://pypa.github.io/pipx/) in chosen manner, e.g. as given in documentation:
|
Install [pipx](https://pypa.github.io/pipx/) in chosen manner, e.g. as given in documentation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -52,4 +61,5 @@ pipx install zimports
|
||||||
```
|
```
|
||||||
|
|
||||||
## Add LUA language server
|
## Add LUA language server
|
||||||
|
|
||||||
Follow instructions from [sumneko/lua-language-server GitHub](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line).
|
Follow instructions from [sumneko/lua-language-server GitHub](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line).
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
-- Set vim options
|
-- Set vim options
|
||||||
require 'options'
|
require("options")
|
||||||
|
|
||||||
-- Load plugins as defined for Packer
|
-- Load plugins as defined for Packer
|
||||||
require 'plugins'
|
require("plugins")
|
||||||
|
|
||||||
-- Define custom keymappings
|
-- Define custom keymappings
|
||||||
require 'keymaps'
|
require("keymaps")
|
||||||
|
|
||||||
-- Remaining vim commands to be converted to lua
|
-- Remaining vim commands to be converted to lua
|
||||||
require 'vimcommands'
|
require("vimcommands")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
local cmp = require 'cmp'
|
local cmp = require("cmp")
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require("luasnip")
|
||||||
|
|
||||||
require('luasnip.loaders.from_vscode').lazy_load()
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
snippet = {
|
snippet = {
|
||||||
|
@ -10,14 +10,14 @@ cmp.setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<C-u>'] = cmp.mapping.scroll_docs(-4), -- Up
|
["<C-u>"] = cmp.mapping.scroll_docs(-4), -- Up
|
||||||
['<C-d>'] = cmp.mapping.scroll_docs(4), -- Down
|
["<C-d>"] = cmp.mapping.scroll_docs(4), -- Down
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
['<CR>'] = cmp.mapping.confirm {
|
["<CR>"] = cmp.mapping.confirm({
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
select = true,
|
select = true,
|
||||||
},
|
}),
|
||||||
['<Tab>'] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
elseif luasnip.expand_or_jumpable() then
|
elseif luasnip.expand_or_jumpable() then
|
||||||
|
@ -25,8 +25,8 @@ cmp.setup({
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end, { 'i', 's' }),
|
end, { "i", "s" }),
|
||||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_prev_item()
|
cmp.select_prev_item()
|
||||||
elseif luasnip.jumpable(-1) then
|
elseif luasnip.jumpable(-1) then
|
||||||
|
@ -34,42 +34,42 @@ cmp.setup({
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end, { 'i', 's' }),
|
end, { "i", "s" }),
|
||||||
}),
|
}),
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'nvim_lsp' },
|
{ name = "nvim_lsp" },
|
||||||
{ name = 'luasnip' },
|
{ name = "luasnip" },
|
||||||
{ name = 'latex_symbols' },
|
{ name = "latex_symbols" },
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Set configuration for specific filetype.
|
|
||||||
cmp.setup.filetype('gitcommit', {
|
|
||||||
sources = {
|
|
||||||
{ name = 'git' },
|
|
||||||
{ name = 'commit' },
|
|
||||||
{ name = 'buffer' },
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
cmp.setup.filetype('markdown', {
|
|
||||||
sources = {
|
|
||||||
{ name = 'spell' },
|
|
||||||
{ name = 'buffer' },
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
cmp.setup.cmdline('/', {
|
-- Set configuration for specific filetype.
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
cmp.setup.filetype("gitcommit", {
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'buffer' }
|
{ name = "git" },
|
||||||
}
|
{ name = "commit" },
|
||||||
|
{ name = "buffer" },
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
cmp.setup.cmdline(':', {
|
cmp.setup.filetype("markdown", {
|
||||||
|
sources = {
|
||||||
|
{ name = "spell" },
|
||||||
|
{ name = "buffer" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
cmp.setup.cmdline("/", {
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'path' },
|
{ name = "buffer" },
|
||||||
{ name = 'cmdline' }
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
|
cmp.setup.cmdline(":", {
|
||||||
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = {
|
||||||
|
{ name = "path" },
|
||||||
|
{ name = "cmdline" },
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -140,7 +140,8 @@ _G._generate_user_statusline_highlights = function()
|
||||||
colors["UserRv" .. name] = { fg = value.bg, bg = value.fg, bold = true }
|
colors["UserRv" .. name] = { fg = value.bg, bg = value.fg, bold = true }
|
||||||
end
|
end
|
||||||
|
|
||||||
local status = vim.o.background == "dark" and { fg = pal.black, bg = pal.white } or { fg = pal.white, bg = pal.black }
|
local status = vim.o.background == "dark" and { fg = pal.black, bg = pal.white }
|
||||||
|
or { fg = pal.white, bg = pal.black }
|
||||||
|
|
||||||
local groups = {
|
local groups = {
|
||||||
-- statusline
|
-- statusline
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require('gitsigns').setup {
|
require("gitsigns").setup({
|
||||||
signcolumn = true,
|
signcolumn = true,
|
||||||
numhl = true,
|
numhl = true,
|
||||||
linehl = false,
|
linehl = false,
|
||||||
|
@ -14,32 +14,44 @@ require('gitsigns').setup {
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Navigation
|
-- Navigation
|
||||||
map('n', ']c', function()
|
map("n", "]c", function()
|
||||||
if vim.wo.diff then return ']c' end
|
if vim.wo.diff then
|
||||||
vim.schedule(function() gs.next_hunk() end)
|
return "]c"
|
||||||
return '<Ignore>'
|
end
|
||||||
|
vim.schedule(function()
|
||||||
|
gs.next_hunk()
|
||||||
|
end)
|
||||||
|
return "<Ignore>"
|
||||||
end, { expr = true })
|
end, { expr = true })
|
||||||
|
|
||||||
map('n', '[c', function()
|
map("n", "[c", function()
|
||||||
if vim.wo.diff then return '[c' end
|
if vim.wo.diff then
|
||||||
vim.schedule(function() gs.prev_hunk() end)
|
return "[c"
|
||||||
return '<Ignore>'
|
end
|
||||||
|
vim.schedule(function()
|
||||||
|
gs.prev_hunk()
|
||||||
|
end)
|
||||||
|
return "<Ignore>"
|
||||||
end, { expr = true })
|
end, { expr = true })
|
||||||
|
|
||||||
-- Actions
|
-- Actions
|
||||||
map({ 'n', 'v' }, '<leader>hs', ':Gitsigns stage_hunk<CR>')
|
map({ "n", "v" }, "<leader>hs", ":Gitsigns stage_hunk<CR>")
|
||||||
map({ 'n', 'v' }, '<leader>hr', ':Gitsigns reset_hunk<CR>')
|
map({ "n", "v" }, "<leader>hr", ":Gitsigns reset_hunk<CR>")
|
||||||
map('n', '<leader>hS', gs.stage_buffer)
|
map("n", "<leader>hS", gs.stage_buffer)
|
||||||
map('n', '<leader>hu', gs.undo_stage_hunk)
|
map("n", "<leader>hu", gs.undo_stage_hunk)
|
||||||
map('n', '<leader>hR', gs.reset_buffer)
|
map("n", "<leader>hR", gs.reset_buffer)
|
||||||
map('n', '<leader>hp', gs.preview_hunk)
|
map("n", "<leader>hp", gs.preview_hunk)
|
||||||
map('n', '<leader>hb', function() gs.blame_line { full = true } end)
|
map("n", "<leader>hb", function()
|
||||||
map('n', '<leader>tb', gs.toggle_current_line_blame)
|
gs.blame_line({ full = true })
|
||||||
map('n', '<leader>hd', gs.diffthis)
|
end)
|
||||||
map('n', '<leader>hD', function() gs.diffthis('~') end)
|
map("n", "<leader>tb", gs.toggle_current_line_blame)
|
||||||
map('n', '<leader>td', gs.toggle_deleted)
|
map("n", "<leader>hd", gs.diffthis)
|
||||||
|
map("n", "<leader>hD", function()
|
||||||
|
gs.diffthis("~")
|
||||||
|
end)
|
||||||
|
map("n", "<leader>td", gs.toggle_deleted)
|
||||||
|
|
||||||
-- Text object
|
-- Text object
|
||||||
map({ 'o', 'x' }, 'ih', ':<C-U>Gitsigns select_hunk<CR>')
|
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>")
|
||||||
end,
|
end,
|
||||||
}
|
})
|
||||||
|
|
|
@ -1,31 +1,16 @@
|
||||||
local lsp_status = require('lsp-status')
|
local lsp_status = require("lsp-status")
|
||||||
lsp_status.config {
|
lsp_status.config({
|
||||||
diagnostics = false,
|
diagnostics = false,
|
||||||
}
|
})
|
||||||
lsp_status.register_progress()
|
lsp_status.register_progress()
|
||||||
|
|
||||||
-- Set up null_ls first
|
|
||||||
local null_ls = require("null-ls")
|
|
||||||
null_ls.setup {
|
|
||||||
sources = {
|
|
||||||
null_ls.builtins.code_actions.gitsigns,
|
|
||||||
null_ls.builtins.diagnostics.mypy,
|
|
||||||
null_ls.builtins.diagnostics.zsh,
|
|
||||||
null_ls.builtins.formatting.black,
|
|
||||||
null_ls.builtins.formatting.isort,
|
|
||||||
null_ls.builtins.formatting.latexindent,
|
|
||||||
null_ls.builtins.formatting.trim_whitespace,
|
|
||||||
null_ls.builtins.hover.dictionary,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, opts)
|
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float, opts)
|
||||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
|
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts)
|
||||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
|
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
|
||||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, opts)
|
vim.keymap.set("n", "<leader>q", vim.diagnostic.setloclist, opts)
|
||||||
|
|
||||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||||
for type, icon in pairs(signs) do
|
for type, icon in pairs(signs) do
|
||||||
|
@ -33,9 +18,9 @@ for type, icon in pairs(signs) do
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
end
|
end
|
||||||
|
|
||||||
local lsp_formatting = function (bufnr)
|
local lsp_formatting = function(bufnr)
|
||||||
vim.lsp.buf.format({
|
vim.lsp.buf.format({
|
||||||
filter = function (client)
|
filter = function(client)
|
||||||
return client.name == "null-ls"
|
return client.name == "null-ls"
|
||||||
end,
|
end,
|
||||||
bufnr = bufnr,
|
bufnr = bufnr,
|
||||||
|
@ -51,23 +36,23 @@ local on_attach = function(client, bufnr)
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
||||||
vim.keymap.set('n', 'gD', vim.lsp.buf.definition, bufopts)
|
vim.keymap.set("n", "gD", vim.lsp.buf.definition, bufopts)
|
||||||
vim.keymap.set('n', 'gd', '<cmd>Trouble lsp_definitions<cr>', bufopts)
|
vim.keymap.set("n", "gd", "<cmd>Trouble lsp_definitions<cr>", bufopts)
|
||||||
vim.keymap.set('n', 'gR', vim.lsp.buf.references, bufopts)
|
vim.keymap.set("n", "gR", vim.lsp.buf.references, bufopts)
|
||||||
vim.keymap.set('n', 'gr', '<cmd>Trouble lsp_references<cr>', bufopts)
|
vim.keymap.set("n", "gr", "<cmd>Trouble lsp_references<cr>", bufopts)
|
||||||
vim.keymap.set('n', 'gI', vim.lsp.buf.implementation, bufopts)
|
vim.keymap.set("n", "gI", vim.lsp.buf.implementation, bufopts)
|
||||||
vim.keymap.set('n', 'gi', '<cmd>Trouble lsp_implementations<cr>', bufopts)
|
vim.keymap.set("n", "gi", "<cmd>Trouble lsp_implementations<cr>", bufopts)
|
||||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
|
vim.keymap.set("n", "K", vim.lsp.buf.hover, bufopts)
|
||||||
vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)
|
vim.keymap.set("n", "<C-k>", vim.lsp.buf.signature_help, bufopts)
|
||||||
vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts)
|
vim.keymap.set("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, bufopts)
|
||||||
vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
|
vim.keymap.set("n", "<leader>wr", vim.lsp.buf.remove_workspace_folder, bufopts)
|
||||||
vim.keymap.set('n', '<leader>wl', function()
|
vim.keymap.set("n", "<leader>wl", function()
|
||||||
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
||||||
end, bufopts)
|
end, bufopts)
|
||||||
vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, bufopts)
|
vim.keymap.set("n", "<leader>D", vim.lsp.buf.type_definition, bufopts)
|
||||||
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts)
|
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, bufopts)
|
||||||
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts)
|
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, bufopts)
|
||||||
vim.keymap.set('n', '<leader>i', lsp_formatting, bufopts)
|
vim.keymap.set("n", "<leader>i", lsp_formatting, bufopts)
|
||||||
end
|
end
|
||||||
|
|
||||||
local lsp_flags = {
|
local lsp_flags = {
|
||||||
|
@ -75,28 +60,48 @@ local lsp_flags = {
|
||||||
debounce_text_changes = 150,
|
debounce_text_changes = 150,
|
||||||
}
|
}
|
||||||
|
|
||||||
local capabilities = vim.tbl_extend('keep', require('cmp_nvim_lsp').default_capabilities(), lsp_status.capabilities)
|
local capabilities = vim.tbl_extend("keep", require("cmp_nvim_lsp").default_capabilities(), lsp_status.capabilities)
|
||||||
|
|
||||||
require('lspconfig')['pyright'].setup{
|
-- Set up null_ls first
|
||||||
|
local null_ls = require("null-ls")
|
||||||
|
null_ls.setup({
|
||||||
|
sources = {
|
||||||
|
null_ls.builtins.code_actions.gitsigns,
|
||||||
|
null_ls.builtins.diagnostics.mypy,
|
||||||
|
null_ls.builtins.diagnostics.zsh,
|
||||||
|
null_ls.builtins.formatting.black,
|
||||||
|
null_ls.builtins.formatting.isort,
|
||||||
|
null_ls.builtins.formatting.trim_whitespace,
|
||||||
|
null_ls.builtins.formatting.stylua,
|
||||||
|
null_ls.builtins.formatting.shfmt,
|
||||||
|
null_ls.builtins.formatting.prettier,
|
||||||
|
null_ls.builtins.hover.dictionary,
|
||||||
|
},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
})
|
||||||
|
|
||||||
require('lspconfig')['fortls'].setup {
|
require("lspconfig")["pyright"].setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
capabilities = capabilities
|
capabilities = capabilities,
|
||||||
}
|
})
|
||||||
|
|
||||||
require('lspconfig')['sumneko_lua'].setup {
|
require("lspconfig")["fortls"].setup({
|
||||||
|
on_attach = on_attach,
|
||||||
|
flags = lsp_flags,
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
require("lspconfig")["sumneko_lua"].setup({
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
runtime = {
|
runtime = {
|
||||||
version = 'LuaJIT',
|
version = "LuaJIT",
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
globals = { 'vim' },
|
globals = { "vim" },
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
library = vim.api.nvim_get_runtime_file("", true),
|
library = vim.api.nvim_get_runtime_file("", true),
|
||||||
|
@ -110,10 +115,10 @@ require('lspconfig')['sumneko_lua'].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
})
|
||||||
|
|
||||||
require('lspconfig')['texlab'].setup {
|
require("lspconfig")["texlab"].setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require('nightfox').setup {
|
require("nightfox").setup({
|
||||||
options = {
|
options = {
|
||||||
transparent = true,
|
transparent = true,
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
require('nightfox').compile()
|
require("nightfox").compile()
|
||||||
vim.cmd("colorscheme nightfox")
|
vim.cmd("colorscheme nightfox")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
require('nvim-tree').setup {
|
require("nvim-tree").setup({
|
||||||
disable_netrw = true,
|
disable_netrw = true,
|
||||||
hijack_netrw = true,
|
hijack_netrw = true,
|
||||||
hijack_cursor = true,
|
hijack_cursor = true,
|
||||||
|
@ -48,7 +48,7 @@ require('nvim-tree').setup {
|
||||||
filters = {
|
filters = {
|
||||||
dotfiles = true,
|
dotfiles = true,
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
local function open_nvim_tree(data)
|
local function open_nvim_tree(data)
|
||||||
-- buffer is a [No Name]
|
-- buffer is a [No Name]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require("project_nvim").setup {
|
require("project_nvim").setup({
|
||||||
-- Manual mode doesn't automatically change your root directory, so you have
|
-- Manual mode doesn't automatically change your root directory, so you have
|
||||||
-- the option to manually do so using `:ProjectRoot` command.
|
-- the option to manually do so using `:ProjectRoot` command.
|
||||||
manual_mode = false,
|
manual_mode = false,
|
||||||
|
@ -32,9 +32,9 @@ require("project_nvim").setup {
|
||||||
-- * global (default)
|
-- * global (default)
|
||||||
-- * tab
|
-- * tab
|
||||||
-- * win
|
-- * win
|
||||||
scope_chdir = 'global',
|
scope_chdir = "global",
|
||||||
|
|
||||||
-- Path where project.nvim will store the project history for use in
|
-- Path where project.nvim will store the project history for use in
|
||||||
-- telescope
|
-- telescope
|
||||||
datapath = vim.fn.stdpath("data"),
|
datapath = vim.fn.stdpath("data"),
|
||||||
}
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require('telescope.actions')
|
require("telescope.actions")
|
||||||
local trouble = require('trouble.providers.telescope')
|
local trouble = require("trouble.providers.telescope")
|
||||||
|
|
||||||
require('telescope').setup {
|
require("telescope").setup({
|
||||||
extensions = {
|
extensions = {
|
||||||
fzf = {
|
fzf = {
|
||||||
fuzzy = true, -- false will only do exact matching
|
fuzzy = true, -- false will only do exact matching
|
||||||
|
@ -25,8 +25,8 @@ require('telescope').setup {
|
||||||
n = { ["<c-t>"] = trouble.open_with_trouble },
|
n = { ["<c-t>"] = trouble.open_with_trouble },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
require('telescope').load_extension('fzf')
|
require("telescope").load_extension("fzf")
|
||||||
require('telescope').load_extension('notify')
|
require("telescope").load_extension("notify")
|
||||||
require('telescope').load_extension('projects')
|
require("telescope").load_extension("projects")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require('toggleterm').setup {
|
require("toggleterm").setup({
|
||||||
direction = 'horizontal',
|
direction = "horizontal",
|
||||||
open_mapping = [[\t]],
|
open_mapping = [[\t]],
|
||||||
size = function (term)
|
size = function(term)
|
||||||
if term.direction == "horizontal" then
|
if term.direction == "horizontal" then
|
||||||
return 15
|
return 15
|
||||||
elseif term.direction == "vertical" then
|
elseif term.direction == "vertical" then
|
||||||
|
@ -11,12 +11,12 @@ require('toggleterm').setup {
|
||||||
hide_numbers = true, -- hide the number column in toggleterm buffers
|
hide_numbers = true, -- hide the number column in toggleterm buffers
|
||||||
persist_size = false,
|
persist_size = false,
|
||||||
float_opts = {
|
float_opts = {
|
||||||
border = 'curved',
|
border = "curved",
|
||||||
},
|
},
|
||||||
winbar = {
|
winbar = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
name_formatter = function(term) -- term: Terminal
|
name_formatter = function(term) -- term: Terminal
|
||||||
return term.name
|
return term.name
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require 'nvim-treesitter.configs'.setup {
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
disable = { 'help', 'fortran' },
|
disable = { "help", "fortran" },
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require('trouble').setup {
|
require("trouble").setup({
|
||||||
position = "bottom", -- position of the list can be: bottom, top, left, right
|
position = "bottom", -- position of the list can be: bottom, top, left, right
|
||||||
height = 10, -- height of the trouble list when position is top or bottom
|
height = 10, -- height of the trouble list when position is top or bottom
|
||||||
width = 50, -- width of the list when position is left or right
|
width = 50, -- width of the list when position is left or right
|
||||||
|
@ -27,7 +27,7 @@ require('trouble').setup {
|
||||||
open_folds = { "zR", "zr" }, -- open all folds
|
open_folds = { "zR", "zr" }, -- open all folds
|
||||||
toggle_fold = { "zA", "za" }, -- toggle fold of current file
|
toggle_fold = { "zA", "za" }, -- toggle fold of current file
|
||||||
previous = "k", -- previous item
|
previous = "k", -- previous item
|
||||||
next = "j" -- next item
|
next = "j", -- next item
|
||||||
},
|
},
|
||||||
indent_lines = true, -- add an indent guide below the fold icons
|
indent_lines = true, -- add an indent guide below the fold icons
|
||||||
auto_open = false, -- automatically open the list when you have diagnostics
|
auto_open = false, -- automatically open the list when you have diagnostics
|
||||||
|
@ -41,7 +41,7 @@ require('trouble').setup {
|
||||||
warning = "",
|
warning = "",
|
||||||
hint = "",
|
hint = "",
|
||||||
information = "",
|
information = "",
|
||||||
other = ""
|
other = "",
|
||||||
},
|
},
|
||||||
use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
|
use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
|
||||||
}
|
})
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = " "
|
||||||
vim.keymap.set('i', 'jk', '<esc>')
|
vim.keymap.set("i", "jk", "<esc>")
|
||||||
|
|
||||||
-- Toggleterm
|
-- Toggleterm
|
||||||
vim.keymap.set('n', '<leader>th', '<cmd>ToggleTerm direction=horizontal<cr>')
|
vim.keymap.set("n", "<leader>th", "<cmd>ToggleTerm direction=horizontal<cr>")
|
||||||
vim.keymap.set('n', '<leader>tv', '<cmd>ToggleTerm direction=vertical<cr>')
|
vim.keymap.set("n", "<leader>tv", "<cmd>ToggleTerm direction=vertical<cr>")
|
||||||
vim.keymap.set('n', '<leader>tf', '<cmd>ToggleTerm direction=float<cr>')
|
vim.keymap.set("n", "<leader>tf", "<cmd>ToggleTerm direction=float<cr>")
|
||||||
vim.keymap.set('n', '<leader>tt', '<cmd>ToggleTerm direction=tab<cr>')
|
vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=tab<cr>")
|
||||||
|
|
||||||
-- Aerial
|
-- Aerial
|
||||||
vim.keymap.set('n', '<leader>aa', '<cmd>AerialToggle<cr>')
|
vim.keymap.set("n", "<leader>aa", "<cmd>AerialToggle<cr>")
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
vim.keymap.set('n', '<leader>;', '<cmd>Telescope builtin<cr>')
|
vim.keymap.set("n", "<leader>;", "<cmd>Telescope builtin<cr>")
|
||||||
vim.keymap.set('n', '<leader>ff', '<cmd>Telescope find_files<cr>')
|
vim.keymap.set("n", "<leader>ff", "<cmd>Telescope find_files<cr>")
|
||||||
vim.keymap.set('n', '<leader>fg', '<cmd>Telescope live_grep<cr>')
|
vim.keymap.set("n", "<leader>fg", "<cmd>Telescope live_grep<cr>")
|
||||||
vim.keymap.set('n', '<leader>fp', '<cmd>Telescope projects<cr>')
|
vim.keymap.set("n", "<leader>fp", "<cmd>Telescope projects<cr>")
|
||||||
vim.keymap.set('n', '<leader>fa', '<cmd>Telescope aerial<cr>')
|
vim.keymap.set("n", "<leader>fa", "<cmd>Telescope aerial<cr>")
|
||||||
vim.keymap.set('n', '<leader>fl', '<cmd>Telescope lsp_document_symbols<cr>')
|
vim.keymap.set("n", "<leader>fl", "<cmd>Telescope lsp_document_symbols<cr>")
|
||||||
vim.keymap.set('n', '<leader>fe', '<cmd>Telescope diagnostics<cr>')
|
vim.keymap.set("n", "<leader>fe", "<cmd>Telescope diagnostics<cr>")
|
||||||
vim.keymap.set('n', '<leader>fs', '<cmd>Telescope treesitter<cr>')
|
vim.keymap.set("n", "<leader>fs", "<cmd>Telescope treesitter<cr>")
|
||||||
vim.keymap.set('n', '<leader>fz', '<cmd>Telescope current_buffer_fuzzy_find<cr>')
|
vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>")
|
||||||
|
|
||||||
-- Nvim-tree
|
-- Nvim-tree
|
||||||
vim.keymap.set('n', '<leader>n', '<cmd>NvimTreeToggle<cr>')
|
vim.keymap.set("n", "<leader>n", "<cmd>NvimTreeToggle<cr>")
|
||||||
|
|
||||||
-- Trouble
|
-- Trouble
|
||||||
vim.keymap.set('n', '<leader>xx', '<cmd>TroubleToggle<cr>')
|
vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>")
|
||||||
vim.keymap.set('n', '<leader>xw', '<cmd>TroubleToggle workspace_diagnostics<cr>')
|
vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>")
|
||||||
vim.keymap.set('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>')
|
vim.keymap.set("n", "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>")
|
||||||
vim.keymap.set('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>')
|
vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>")
|
||||||
vim.keymap.set('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>')
|
vim.keymap.set("n", "<leader>xl", "<cmd>TroubleToggle loclist<cr>")
|
||||||
|
|
||||||
-- Navigator
|
-- Navigator
|
||||||
vim.keymap.set({'n', 't'}, '<A-h>', '<CMD>NavigatorLeft<CR>')
|
vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>")
|
||||||
vim.keymap.set({'n', 't'}, '<A-l>', '<CMD>NavigatorRight<CR>')
|
vim.keymap.set({ "n", "t" }, "<A-l>", "<CMD>NavigatorRight<CR>")
|
||||||
vim.keymap.set({'n', 't'}, '<A-k>', '<CMD>NavigatorUp<CR>')
|
vim.keymap.set({ "n", "t" }, "<A-k>", "<CMD>NavigatorUp<CR>")
|
||||||
vim.keymap.set({'n', 't'}, '<A-j>', '<CMD>NavigatorDown<CR>')
|
vim.keymap.set({ "n", "t" }, "<A-j>", "<CMD>NavigatorDown<CR>")
|
||||||
vim.keymap.set({'n', 't'}, '<A-p>', '<CMD>NavigatorPrevious<CR>')
|
vim.keymap.set({ "n", "t" }, "<A-p>", "<CMD>NavigatorPrevious<CR>")
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
vim.opt.title = true
|
vim.opt.title = true
|
||||||
vim.g.python3_host_prog = '/usr/bin/python3'
|
vim.g.python3_host_prog = "/usr/bin/python3"
|
||||||
vim.g.python_indent = {
|
vim.g.python_indent = {
|
||||||
open_paren = 'shiftwidth()',
|
open_paren = "shiftwidth()",
|
||||||
nested_paren = 'shiftwidth()',
|
nested_paren = "shiftwidth()",
|
||||||
continue = 'shiftwidth()',
|
continue = "shiftwidth()",
|
||||||
closed_paren_align_last_line = 'v:false',
|
closed_paren_align_last_line = "v:false",
|
||||||
}
|
}
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
vim.opt.mouse = "nv"
|
vim.opt.mouse = "nv"
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.opt.listchars = { trail = '.', tab = '>_' }
|
vim.opt.listchars = { trail = ".", tab = ">_" }
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
vim.opt.wrap = true
|
vim.opt.wrap = true
|
||||||
vim.opt.linebreak = true
|
vim.opt.linebreak = true
|
||||||
|
|
|
@ -5,153 +5,153 @@ vim.cmd([[
|
||||||
augroup end
|
augroup end
|
||||||
]])
|
]])
|
||||||
|
|
||||||
require('packer').startup {
|
require("packer").startup({
|
||||||
function(use)
|
function(use)
|
||||||
use 'wbthomason/packer.nvim'
|
use("wbthomason/packer.nvim")
|
||||||
use 'lewis6991/impatient.nvim'
|
use("lewis6991/impatient.nvim")
|
||||||
use 'stevearc/dressing.nvim'
|
use("stevearc/dressing.nvim")
|
||||||
use {
|
use({
|
||||||
"EdenEast/nightfox.nvim",
|
"EdenEast/nightfox.nvim",
|
||||||
config = function ()
|
|
||||||
require 'config.nightfox'
|
|
||||||
end
|
|
||||||
}
|
|
||||||
use {
|
|
||||||
'nanozuki/tabby.nvim',
|
|
||||||
config = function ()
|
|
||||||
require 'config.tabby'
|
|
||||||
end
|
|
||||||
}
|
|
||||||
use {
|
|
||||||
'rcarriga/nvim-notify',
|
|
||||||
config = function()
|
config = function()
|
||||||
require("notify").setup {
|
require("config.nightfox")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
use({
|
||||||
|
"nanozuki/tabby.nvim",
|
||||||
|
config = function()
|
||||||
|
require("config.tabby")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
use({
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
config = function()
|
||||||
|
require("notify").setup({
|
||||||
background_colour = "#282c34",
|
background_colour = "#282c34",
|
||||||
}
|
})
|
||||||
vim.notify = require("notify")
|
vim.notify = require("notify")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'vigoux/notifier.nvim',
|
"vigoux/notifier.nvim",
|
||||||
config = function ()
|
|
||||||
require('notifier')
|
|
||||||
end
|
|
||||||
}
|
|
||||||
use 'kyazdani42/nvim-web-devicons'
|
|
||||||
use 'nvim-lua/plenary.nvim'
|
|
||||||
use {
|
|
||||||
'neovim/nvim-lspconfig',
|
|
||||||
'https://github.com/nvim-lua/lsp-status.nvim.git',
|
|
||||||
'hrsh7th/nvim-cmp',
|
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
|
||||||
'hrsh7th/cmp-buffer',
|
|
||||||
'hrsh7th/cmp-path',
|
|
||||||
'hrsh7th/cmp-cmdline',
|
|
||||||
'f3fora/cmp-spell',
|
|
||||||
'petertriho/cmp-git',
|
|
||||||
'Dosx001/cmp-commit',
|
|
||||||
'kdheepak/cmp-latex-symbols',
|
|
||||||
'L3MON4D3/LuaSnip',
|
|
||||||
'saadparwaiz1/cmp_luasnip',
|
|
||||||
'rafamadriz/friendly-snippets',
|
|
||||||
'windwp/nvim-autopairs',
|
|
||||||
'https://github.com/jose-elias-alvarez/null-ls.nvim',
|
|
||||||
}
|
|
||||||
use {
|
|
||||||
'nvim-treesitter/nvim-treesitter',
|
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.treesitter'
|
require("notifier")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use("kyazdani42/nvim-web-devicons")
|
||||||
|
use("nvim-lua/plenary.nvim")
|
||||||
|
use({
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"https://github.com/nvim-lua/lsp-status.nvim.git",
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
"hrsh7th/cmp-buffer",
|
||||||
|
"hrsh7th/cmp-path",
|
||||||
|
"hrsh7th/cmp-cmdline",
|
||||||
|
"f3fora/cmp-spell",
|
||||||
|
"petertriho/cmp-git",
|
||||||
|
"Dosx001/cmp-commit",
|
||||||
|
"kdheepak/cmp-latex-symbols",
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
"rafamadriz/friendly-snippets",
|
||||||
|
"windwp/nvim-autopairs",
|
||||||
|
"https://github.com/jose-elias-alvarez/null-ls.nvim",
|
||||||
|
})
|
||||||
|
use({
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
config = function()
|
||||||
|
require("config.treesitter")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
use({
|
||||||
"ThePrimeagen/refactoring.nvim",
|
"ThePrimeagen/refactoring.nvim",
|
||||||
requires = {
|
requires = {
|
||||||
{"nvim-lua/plenary.nvim"},
|
{ "nvim-lua/plenary.nvim" },
|
||||||
{"nvim-treesitter/nvim-treesitter"}
|
{ "nvim-treesitter/nvim-treesitter" },
|
||||||
},
|
},
|
||||||
config = function ()
|
config = function()
|
||||||
require("refactoring").setup()
|
require("refactoring").setup()
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'tpope/vim-fugitive',
|
"tpope/vim-fugitive",
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'https://github.com/lewis6991/gitsigns.nvim.git',
|
"https://github.com/lewis6991/gitsigns.nvim.git",
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.gitsigns'
|
require("config.gitsigns")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'feline-nvim/feline.nvim',
|
"feline-nvim/feline.nvim",
|
||||||
config = function ()
|
|
||||||
require 'config.feline'
|
|
||||||
end
|
|
||||||
}
|
|
||||||
use {
|
|
||||||
'kyazdani42/nvim-tree.lua',
|
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.nvim-tree'
|
require("config.feline")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
|
"kyazdani42/nvim-tree.lua",
|
||||||
|
config = function()
|
||||||
|
require("config.nvim-tree")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
use({
|
||||||
"ahmedkhalf/project.nvim",
|
"ahmedkhalf/project.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.project'
|
require("config.project")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'akinsho/toggleterm.nvim',
|
"akinsho/toggleterm.nvim",
|
||||||
tag = 'v2.*',
|
tag = "v2.*",
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.toggleterm'
|
require("config.toggleterm")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'nvim-telescope/telescope-fzf-native.nvim',
|
"nvim-telescope/telescope-fzf-native.nvim",
|
||||||
run = 'make'
|
run = "make",
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'nvim-telescope/telescope.nvim',
|
"nvim-telescope/telescope.nvim",
|
||||||
branch = '0.1.x',
|
branch = "0.1.x",
|
||||||
requires = {
|
requires = {
|
||||||
{ 'nvim-lua/plenary.nvim' }
|
{ "nvim-lua/plenary.nvim" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.telescope'
|
require("config.telescope")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'folke/trouble.nvim',
|
"folke/trouble.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require 'config.trouble'
|
require("config.trouble")
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require('indent_blankline').setup {
|
require("indent_blankline").setup({
|
||||||
show_current_context = true,
|
show_current_context = true,
|
||||||
show_current_context_start = false,
|
show_current_context_start = false,
|
||||||
}
|
})
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
use {
|
use({
|
||||||
'numToStr/Navigator.nvim',
|
"numToStr/Navigator.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require('Navigator').setup {
|
require("Navigator").setup({
|
||||||
mux = 'auto'
|
mux = "auto",
|
||||||
}
|
})
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
end,
|
end,
|
||||||
config = {
|
config = {
|
||||||
display = {
|
display = {
|
||||||
open_fn = function()
|
open_fn = function()
|
||||||
return require('packer.util').float({ border = 'single' })
|
return require("packer.util").float({ border = "single" })
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
})
|
||||||
require 'config.lsp'
|
require("config.lsp")
|
||||||
require 'config.cmp'
|
require("config.cmp")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
-- TODO convert to lua
|
-- TODO convert to lua
|
||||||
vim.cmd("let &t_ut=''") -- For kitty background colour support
|
vim.cmd("let &t_ut=''") -- For kitty background colour support
|
||||||
vim.cmd [[
|
vim.cmd([[
|
||||||
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
||||||
au BufRead,BufNewFile *.md setlocal spell
|
au BufRead,BufNewFile *.md setlocal spell
|
||||||
au BufRead,BufNewFile *.code-workspace setlocal filetype=json
|
au BufRead,BufNewFile *.code-workspace setlocal filetype=json
|
||||||
|
@ -8,4 +8,4 @@ au BufRead,BufNewFile *.csv setlocal nowrap
|
||||||
au BufRead,BufNewFile *.service[a-zA-Z0-9]* setlocal filetype=systemd
|
au BufRead,BufNewFile *.service[a-zA-Z0-9]* setlocal filetype=systemd
|
||||||
au TermOpen * setlocal nonumber norelativenumber
|
au TermOpen * setlocal nonumber norelativenumber
|
||||||
syntax on
|
syntax on
|
||||||
]]
|
]])
|
||||||
|
|
|
@ -2,7 +2,7 @@ fzf
|
||||||
lazygit
|
lazygit
|
||||||
lua-language-server
|
lua-language-server
|
||||||
neovim
|
neovim
|
||||||
pyenv
|
prettier
|
||||||
python
|
python
|
||||||
python-black
|
python-black
|
||||||
python-isort
|
python-isort
|
||||||
|
@ -13,6 +13,8 @@ python-pre-commit
|
||||||
python-pynvim
|
python-pynvim
|
||||||
python-virtualenv
|
python-virtualenv
|
||||||
ripgrep
|
ripgrep
|
||||||
|
shfmt
|
||||||
|
stylua
|
||||||
tmux
|
tmux
|
||||||
tree-sitter
|
tree-sitter
|
||||||
wezterm
|
wezterm
|
||||||
|
|
Loading…
Reference in a new issue