Thing i'm good now
This commit is contained in:
parent
b94345a27a
commit
16296b8620
6
init.lua
6
init.lua
|
@ -146,7 +146,7 @@ vim.opt.termguicolors = true
|
||||||
-- See `:help 'list'`
|
-- See `:help 'list'`
|
||||||
-- and `:help 'listchars'`
|
-- and `:help 'listchars'`
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
-- vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
||||||
|
|
||||||
-- Preview substitutions live, as you type!
|
-- Preview substitutions live, as you type!
|
||||||
vim.opt.inccommand = 'split'
|
vim.opt.inccommand = 'split'
|
||||||
|
@ -567,8 +567,8 @@ require('lazy').setup({
|
||||||
|
|
||||||
require 'custom'
|
require 'custom'
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('VimEnter', {
|
--[[ vim.api.nvim_create_autocmd('VimEnter', {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd 'Trouble'
|
vim.cmd 'Trouble'
|
||||||
end,
|
end,
|
||||||
})
|
}) ]]
|
||||||
|
|
|
@ -5,8 +5,7 @@ return {
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
|
|
||||||
map('i', '<C-o>', 'copilot#Accept("<CR>")', { expr = true, silent = true })
|
map('i', '<C-o>', 'copilot#Accept("<CR>")', { expr = true, silent = true })
|
||||||
end,
|
|
||||||
config = function()
|
|
||||||
vim.g.copilot_no_tab_map = true
|
vim.g.copilot_no_tab_map = true
|
||||||
vim.g.copilot_assume_mapped = true
|
vim.g.copilot_assume_mapped = true
|
||||||
vim.g.copilot_tab_fallback = ''
|
vim.g.copilot_tab_fallback = ''
|
||||||
|
|
|
@ -147,13 +147,7 @@ return { -- LSP Configuration & Plugins
|
||||||
clangd = {
|
clangd = {
|
||||||
cmd = {
|
cmd = {
|
||||||
'clangd',
|
'clangd',
|
||||||
'--query-driver=/bin/clang-tidy,/usr/bin/**/clang-*,/bin/clang,/bin/clang++,/usr/bin/gcc,/usr/bin/g++',
|
|
||||||
'--clang-tidy',
|
|
||||||
'--clang-tidy-checks=*',
|
|
||||||
'--style=file ~/.config/nvim/clang-format',
|
|
||||||
'--background-index',
|
|
||||||
},
|
},
|
||||||
capabilities = capabilities,
|
|
||||||
},
|
},
|
||||||
-- gopls = {},
|
-- gopls = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
|
|
|
@ -4,7 +4,7 @@ return {
|
||||||
config = true,
|
config = true,
|
||||||
init = function()
|
init = function()
|
||||||
local opts = { buffer = 0 }
|
local opts = { buffer = 0 }
|
||||||
vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
|
--vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
|
||||||
vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
|
vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
|
||||||
vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
|
vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
|
||||||
vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
|
vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
|
||||||
|
|
|
@ -7,7 +7,6 @@ return {
|
||||||
local lint = require 'lint'
|
local lint = require 'lint'
|
||||||
lint.linters_by_ft = {
|
lint.linters_by_ft = {
|
||||||
python = { 'mypy', 'ruff' },
|
python = { 'mypy', 'ruff' },
|
||||||
cmake = { 'cmakelint' },
|
|
||||||
cpp = { 'cppcheck' },
|
cpp = { 'cppcheck' },
|
||||||
c = { 'cppcheck' },
|
c = { 'cppcheck' },
|
||||||
javascript = { 'eslint' },
|
javascript = { 'eslint' },
|
||||||
|
|
2
setup.sh
2
setup.sh
|
@ -5,7 +5,7 @@ python3 -m venv .venv
|
||||||
.venv/bin/pip install debugpy
|
.venv/bin/pip install debugpy
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
PKGS=("cppcheck" "clang" "cmake" "npm")
|
PKGS=("cppcheck" "clang" "cmake" "npm", "eslint")
|
||||||
|
|
||||||
# Get distro
|
# Get distro
|
||||||
distro=$(cat /etc/os-release | grep PRETTY_NAME= | awk '{print $1}' | cut -d \" -f 2)
|
distro=$(cat /etc/os-release | grep PRETTY_NAME= | awk '{print $1}' | cut -d \" -f 2)
|
||||||
|
|
Loading…
Reference in New Issue